Skip to content

fix(server): t3_background_wait accepts a single taskId - #299

Merged
pandec merged 2 commits into
devfrom
fix/background-wait-task-id-alias
Nov 13, 2026
Merged

pandec merged 2 commits into
devfrom
fix/background-wait-task-id-alias

Conversation

@pandec

@pandec pandec commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Agents keep calling t3_background_wait with {"taskId": "…"}: 81 of 94 failed calls between Oct 26 and Nov 13. The singular shape matches Claude Code's own TaskOutput/TaskStop and the T3 system prompt ("with its task ID"). The Nov 2 example in the tool description did not stop it.

Fix:

  • The tool schema accepts an optional taskId and decodes it into taskIds, so the handler is unchanged. If neither key is given, the call fails with "Pass taskIds, e.g. {"taskIds":["<id>"]}."
  • The Claude prompt now names taskIds instead of "its task ID".
  • Agent context does not grow: the prompt shrinks by 2 B and the tool list by 1 B. agentContextBudget.json is updated to the measured sizes.

Tests: a new case in tools.test.ts covers the alias, merging taskId into taskIds, the empty-input error, and the advertised keys (unknown keys are rejected by the MCP server).

Checks: vp check and vp run typecheck pass. In vp run check:changed, everything passes except 3 tests that also fail on clean dev on macOS: pinnedRuntime, GitVcsDriverCore worktree path, and ClaudeSkills EEXIST. Not run: the paid mcp-tool-use eval, because no ANTHROPIC_API_KEY is set.

Opus 5.5 via Claude Code in T3 Code.

Agents often send {"taskId": "…"}, the shape of Claude Code's own task tools, and the call fails. Decode taskId into taskIds and name taskIds in the Claude prompt.
@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 045e45c and 85eab41.

Files selected for processing: 4

  • apps/server/src/mcp/toolkits/orchestrator/tools.test.ts
  • apps/server/src/mcp/toolkits/orchestrator/tools.ts
  • apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
  • apps/server/src/provider/agentContextBudget.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@pandec
pandec merged commit cbeaa76 into dev Nov 13, 2026
4 checks passed
@pandec
pandec deleted the fix/background-wait-task-id-alias branch November 13, 2026 11:59
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