diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-27 21:13:14 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-27 21:13:14 +0300 |
| commit | 0ef94cdbc1b49af82f48ca4c7eec3eb0d73ae091 (patch) | |
| tree | fcaf72315c50cde448659b8e30438a8f2cd10f00 /src/integration/assets | |
| parent | 19be0a6ca78bca0579a96143532c687b7a90420f (diff) | |
fix: improve claude subagent hook lifecycle
fixes #58
Diffstat (limited to 'src/integration/assets')
| -rw-r--r-- | src/integration/assets/claude/herdr-agent-state.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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": |
