Skip to content

[Bug]: Claude agents call t3_background_wait with taskId and fail, because the instructions say "its task ID" but the schema needs taskIds #31889

Open

Description

@Guria

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

  1. In a Claude thread, start a background command or Monitor.
  2. 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.
  3. 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.

Impact

Minor bug or occasional failure

Version or commit

main @ 2756da4

Environment

Linux, Claude Code provider

Suggested fix

Any of:

  • Accept taskId as an alias for a one-item taskIds.
  • Name the key in the instructions and description: "with its task ID in taskIds".
  • Make the validation error show the expected shape: taskIds: ["<id>"].

Activity

  1. viggo-1 commented on Nov 14, 2026

    @viggo-1

    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_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.

  2. 1kuna commented on Nov 16, 2026

    @1kuna
    Contributor

    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.

  3. witheez commented on Nov 19, 2026

    @witheez

    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

  4. Luzivog commented on Nov 23, 2026

    @Luzivog
    Contributor

    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/TaskOutput task_id.
    • Updating the injected prompt to taskIds: ["<id>"] (and/or accepting taskId as an alias) would eliminate ~110 wasted round-trip calls per day.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions