Skip to content

Raise wait_agents timeout and extend while child shells run - #850

Closed
TheGreatAxios wants to merge 3 commits into
mainfrom
cl-7537-raise-wait_agents-timeout-and-extend-it-while-child-shells
Closed

Raise wait_agents timeout and extend while child shells run#850
TheGreatAxios wants to merge 3 commits into
mainfrom
cl-7537-raise-wait_agents-timeout-and-extend-it-while-child-shells

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Default wait_agents timeout is 5 minutes and the clamp is 30 minutes
  • Wait extends while a targeted child has run_shell or shell in flight, then times out promptly when that shell ends if the worker is still running
  • Timeout still does not cancel workers

Verification

  • bun run typecheck, bun run build, and bun run test pass

Fixes CL-7537

Thirty seconds was too short for typecheck, and a five-minute clamp
could not cover a long child shell. Timeout still does not cancel
workers.
An extend slice used to keep blocking for the rest of the default interval after tool.done cleared the last in-flight shell. The wait reason is gone at that point, so the parent should return timed_out promptly.
@linear-code

linear-code Bot commented Sep 9, 2026

Copy link
Copy Markdown

CL-7537

timeout_ms is always the max block for this call. Omit stays a
30-second hatch; the clamp is 30 minutes so an explicit wait can
cover a long check. Child shells no longer auto-extend the wait.
@TheGreatAxios

Copy link
Copy Markdown
Collaborator Author

Closing without merge: lengthening wait_agents fights mailbox-wake (CL-7518). Canceled CL-7537. Do not include in 0.3.19.

@TheGreatAxios

Copy link
Copy Markdown
Collaborator Author

Closed without merge: lengthening wait_agents fights mailbox-wake (CL-7518). CL-7537 canceled. Do not include in 0.3.19.

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