fix: remove unused SubagentStart/SubagentStop hook events (#9960)

Signed-off-by: Varun Nuthalapati <nuthalapativarun@gmail.com>
This commit is contained in:
nuthalapativarun
2026-06-23 12:55:50 -07:00
committed by GitHub
parent 527fcfc288
commit eef6c2a2fa
2 changed files with 1 additions and 6 deletions
-6
View File
@@ -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,
})
}