You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
t3_background_wait with no ids: wait on every background task started this turn
#38932
t3_background_wait needs the ids of the tasks to wait on (taskIds, minItems: 1). An agent therefore can't put the wait in the same message as the launch: it has to launch, read each id back, then call the wait in a later step. In practice agents call it with taskId (#31889), with ids that already finished (#37006), or forget it and poll instead.
In my usage over one week (Claude provider, orchestration-heavy threads): t3_background_wait errors in 11 of 11 sampled sessions, 172 of 921 wait calls returned unmatched ids, and I estimate ~644 wait calls plus 491 status-only messages at about 3% of weekly spend in orchestrating threads.
Proposal
Make taskIds optional. t3_background_wait {} registers every background Bash / Monitor task started in the current turn, so it can go in the same message as the launch.
Return the terminal state per task ({state, exitCode, elapsed}) and tell the agent to end its turn.
This complements #37006 (recovering from refusals) rather than replacing it: with a no-ids form most of those refusals can't happen.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem
t3_background_waitneeds the ids of the tasks to wait on (taskIds,minItems: 1). An agent therefore can't put the wait in the same message as the launch: it has to launch, read each id back, then call the wait in a later step. In practice agents call it withtaskId(#31889), with ids that already finished (#37006), or forget it and poll instead.In my usage over one week (Claude provider, orchestration-heavy threads):
t3_background_waiterrors in 11 of 11 sampled sessions, 172 of 921 wait calls returned unmatched ids, and I estimate ~644 wait calls plus 491 status-only messages at about 3% of weekly spend in orchestrating threads.Proposal
taskIdsoptional.t3_background_wait {}registers every background Bash / Monitor task started in the current turn, so it can go in the same message as the launch.{state, exitCode, elapsed}) and tell the agent to end its turn.This complements #37006 (recovering from refusals) rather than replacing it: with a no-ids form most of those refusals can't happen.
All reactions