fix(bg): raise agents-query timeout so bg spawn capture doesn't get killed#77
Merged
Conversation
…~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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
alpha.19 shipped a 5s timeout on the
claude agents --json --allquery, but that same query captures a freshly-spawned bg session's id — and immediately afterclaude --bgthe 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