mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
fix: remove unused SubagentStart/SubagentStop hook events (#9960)
Signed-off-by: Varun Nuthalapati <nuthalapativarun@gmail.com>
This commit is contained in:
@@ -59,8 +59,6 @@ pub enum HookEvent {
|
||||
BeforeShellExecution,
|
||||
AfterShellExecution,
|
||||
Stop,
|
||||
SubagentStart,
|
||||
SubagentStop,
|
||||
}
|
||||
|
||||
impl HookEvent {
|
||||
@@ -77,8 +75,6 @@ impl HookEvent {
|
||||
HookEvent::BeforeShellExecution => "BeforeShellExecution",
|
||||
HookEvent::AfterShellExecution => "AfterShellExecution",
|
||||
HookEvent::Stop => "Stop",
|
||||
HookEvent::SubagentStart => "SubagentStart",
|
||||
HookEvent::SubagentStop => "SubagentStop",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,8 +91,6 @@ impl HookEvent {
|
||||
"BeforeShellExecution" => HookEvent::BeforeShellExecution,
|
||||
"AfterShellExecution" => HookEvent::AfterShellExecution,
|
||||
"Stop" => HookEvent::Stop,
|
||||
"SubagentStart" => HookEvent::SubagentStart,
|
||||
"SubagentStop" => HookEvent::SubagentStop,
|
||||
_ => return None,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -318,6 +318,7 @@ Check the following:
|
||||
- The command path is correct. Use `${PLUGIN_ROOT}` for scripts inside the plugin.
|
||||
- The script is executable if you call it directly.
|
||||
- The plugin is not listed in `disabledPlugins`.
|
||||
- The event is not a subagent lifecycle event. `SubagentStart` and `SubagentStop` are not currently emitted by goose, so hooks registered for them will never run.
|
||||
|
||||
### My Hook Timed Out or Failed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user