diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-11 16:13:17 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-11 16:13:17 +0300 |
| commit | 55cdf2e8f8af2dd3feebb4bb7d44c9cb7e23b384 (patch) | |
| tree | 91feb43a39812d63e19fc5068f95dbe0c896e118 /src/integration/assets/claude | |
| parent | e201a647635905a5141bfce335619b0e232b396d (diff) | |
fix: stabilize integration agent state reports
Diffstat (limited to 'src/integration/assets/claude')
| -rw-r--r-- | src/integration/assets/claude/herdr-agent-state.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/integration/assets/claude/herdr-agent-state.sh b/src/integration/assets/claude/herdr-agent-state.sh index 527fe9f8..18b042e8 100644 --- a/src/integration/assets/claude/herdr-agent-state.sh +++ b/src/integration/assets/claude/herdr-agent-state.sh @@ -1,6 +1,8 @@ #!/bin/sh # installed by herdr # safe to edit. this hook only activates inside herdr-managed panes. +# HERDR_INTEGRATION_ID=claude +# HERDR_INTEGRATION_VERSION=1 set -eu @@ -50,6 +52,7 @@ if is_subagent and action in ("idle", "release"): action = "working" request_id = f"{source}:{int(time.time() * 1000)}:{random.randrange(1_000_000):06d}" +report_seq = time.time_ns() if action == "release": request = { "id": request_id, @@ -58,6 +61,7 @@ if action == "release": "pane_id": pane_id, "source": source, "agent": "claude", + "seq": report_seq, }, } else: @@ -69,6 +73,7 @@ else: "source": source, "agent": "claude", "state": action, + "seq": report_seq, }, } |
