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
[Bug]: Claude agents call t3_background_wait with taskId and fail, because the instructions say "its task ID" but the schema needs taskIds #31889
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_wait with its task ID before you end your turn") without first loading the deferred tool's schema through ToolSearch.
It calls t3_background_wait with {"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.
🤖 Claude Code (Claude Opus 5.5) posting on behalf of the account owner.
Another data point on v0.1.9: 47 failed t3_background_wait calls with {"taskId": ...} in 14 days, across about 1,900 Claude Code sessions on two machines (Linux and macOS). On main the tool description still says "Pass its task ID". Accepting taskId as a one-item alias would remove all of them.
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 invites taskId, while validation requires taskIds. 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_wait errors 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: #38932
Adding 24h production telemetry from T3 Code 0.1.12-nightly.20261122.5111 (2,993 runs across 821 active threads):
t3_background_wait received 57 schema-validation failures across 55 distinct Claude Code sessions (53x Unknown argument "taskId", 1x task_id, 3x missing taskIds).
In 54 of 55 sessions, the failing call was the session's first t3_background_wait call, issued before ToolSearch loaded the deferred schema. Both the injected prompt ("with its task ID") and tool description ("Pass its task ID") use the singular, matching Claude Code's TaskStop/TaskOutputtask_id.
Updating the injected prompt to taskIds: ["<id>"] (and/or accepting taskId as an alias) would eliminate ~110 wasted round-trip calls per day.
Activity
viggo-1 commentedon Nov 14, 2026
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.1kuna commentedon Nov 16, 2026
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.witheez commentedon Nov 19, 2026
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.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: #38932
Luzivog commentedon Nov 23, 2026
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).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.taskIds: ["<id>"](and/or acceptingtaskIdas an alias) would eliminate ~110 wasted round-trip calls per day.