Skip to content

fix(bg): raise agents-query timeout so bg spawn capture doesn't get killed#77

Merged
anshulsao merged 1 commit into
mainfrom
fix-bg-agents-timeout
Jun 10, 2026
Merged

fix(bg): raise agents-query timeout so bg spawn capture doesn't get killed#77
anshulsao merged 1 commit into
mainfrom
fix-bg-agents-timeout

Conversation

@anshulsao

Copy link
Copy Markdown
Contributor

alpha.19 shipped a 5s timeout on the claude agents --json --all query, but that same query captures a freshly-spawned bg session's id — and immediately after claude --bg the daemon takes ~10s to answer (measured), so the spawn failed (signal: killed) and rolled back, orphaning the agent. Raised the backstop to 30s. Verified live: bg spawn now captures the id and records it. Cutting v0.1.0-alpha.20 after merge.

🤖 Generated with Claude Code

…~10s)

The `claude agents --json --all` lookup that captures a freshly-spawned bg
session's id ran under a 5s timeout, but right after `claude --bg` the
daemon is busy registering the agent and the query takes ~10s (measured) —
so SpawnBackground failed with `signal: killed` and rolled back, orphaning
the agent. Bumped the backstop to 30s: it still bounds a genuinely stalled
daemon (so flow show/list can't hang forever) without killing legitimate
post-spawn captures. Ships as alpha.20; fixes bg spawn in alpha.19.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@anshulsao anshulsao merged commit 26c88be into main Jun 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant