[Bug]: Claude agents call t3_background_wait with `taskId` and fail, because the instructions say "its task ID" but the schema needs `taskIds` #31889
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
- In a Claude thread, start a background command or Monitor.
- The agent follows the injected system prompt ("call
t3_background_waitwith its task ID before you end your turn") without first loading the deferred tool's schema through ToolSearch. - It calls
t3_background_waitwith{"taskId": "<id>"}.
Expected behavior#
The wait registers, or the error tells the agent the shape to use (taskIds: ["<id>"]).
Actual behavior#
The call fails:
Invalid parameters for tool 't3_background_wait': Missing key at ["taskIds"]
The schema requires taskIds: string[] (1–20 items) (apps/server/src/mcp/toolkits/orchestrator/tools.ts). Both the injected instructions (CLAUDE_BACKGROUND_WAIT_INSTRUCTIONS in ClaudeAdapterV2.ts: "with its task ID") and the tool description ("Pass its task ID") use the singular, which matches the wrong key.
Across ~170 Claude Code sessions in T3 Code on one project (Oct 18 – Nov 6 2026), this happened in 5 separate sessions.
Impact#
Minor bug or occasional failure
Version or commit#
main @ 2756da402b
Environment#
Linux, Claude Code provider
Suggested fix#
Any of:
- Accept
taskIdas an alias for a one-itemtaskIds. - Name the key in the instructions and description: "with its task ID in
taskIds". - Make the validation error show the expected shape:
taskIds: ["<id>"].
tanstack-source added labelsbug
Additional weekly evidence, seen on T3 0.1.9, from a single-user host running about 20 orchestrator threads: 64 background-wait argument failures exposed 12.6M input-side tokens in the Nov 8–15 audit. All 10 checked retries using the list-shaped argument succeeded. This is observed retry success in that sample, not an end-to-end test of a fix.
Please align both the injected instruction and the tool description with the actual schema:
t3_background_wait({"taskIds": ["<task-id>"]}). The current singular “its task ID” wording invitestaskId, while validation requirestaskIds. Showing the accepted shape in the validation error would also avoid an extra discovery turn. Acceptance: follow the injected wording in a fresh session and register the wait on the first call.Numbers from my usage over one week (T3 0.1.10 and the build before it, Claude Code 2.1.327 provider):
t3_background_waiterrors in 11 of 11 sampled orchestrating sessions.- 172 of 921 wait calls returned unmatched ids.
- Exact error seen on the older build:
Invalid parameters for tool 't3_background_wait': Missing key at ["taskIds"] (called with {"taskId": …}).
On 0.1.10 the not-running case now says "None of these IDs is running background work on this thread …", which is clearer. A related idea (no ids = every background task started this turn) is in a Discussion: https://github.com/pingdotgg/t3code/discussions/38932
Adding 24h production telemetry from T3 Code
0.1.12-nightly.20261122.5111(2,993 runs across 821 active threads):t3_background_waitreceived 57 schema-validation failures across 55 distinct Claude Code sessions (53xUnknown argument "taskId", 1xtask_id, 3x missingtaskIds).- In 54 of 55 sessions, the failing call was the session's first
t3_background_waitcall, issued beforeToolSearchloaded the deferred schema. Both the injected prompt ("with its task ID") and tool description ("Pass its task ID") use the singular, matching Claude Code'sTaskStop/TaskOutputtask_id. - Updating the injected prompt to
taskIds: ["<id>"](and/or acceptingtaskIdas an alias) would eliminate ~110 wasted round-trip calls per day.
Sign in to join this conversation.
Note
🤖 Claude Code (Claude Opus 5.5) posting on behalf of the account owner.
Another data point on v0.1.9: 47 failed
t3_background_waitcalls with{"taskId": ...}in 14 days, across about 1,900 Claude Code sessions on two machines (Linux and macOS). Onmainthe tool description still says "Pass its task ID". AcceptingtaskIdas a one-item alias would remove all of them.