From 0ef94cdbc1b49af82f48ca4c7eec3eb0d73ae091 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Mon, 27 Apr 2026 21:13:14 +0300 Subject: fix: improve claude subagent hook lifecycle fixes #58 --- src/integration/assets/claude/herdr-agent-state.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/integration/assets') diff --git a/src/integration/assets/claude/herdr-agent-state.sh b/src/integration/assets/claude/herdr-agent-state.sh index d8acdd76..527fe9f8 100644 --- a/src/integration/assets/claude/herdr-agent-state.sh +++ b/src/integration/assets/claude/herdr-agent-state.sh @@ -46,8 +46,8 @@ if hook_input_file: hook_input = {} is_subagent = bool(hook_input.get("agent_id")) -if is_subagent: - raise SystemExit(0) +if is_subagent and action in ("idle", "release"): + action = "working" request_id = f"{source}:{int(time.time() * 1000)}:{random.randrange(1_000_000):06d}" if action == "release": -- cgit v1.2.3