The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 22:15 UTC
fix(server): Claude Plan mode runs t3_background_wait without asking (#34343)
Co-authored-by: Aaron Zingerle <aaron.zingerle@avoautomation.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
Aaron Zingerle committed
Nov 12, 2026 at 00:22 UTC
b9381c257d506f1f76f72a391bc96c6fd95a840d
3 files changed
+8
-1
apps/server/src/mcp/toolkits/orchestrator/tools.ts
+5
-1
@@ -154,7 +154,11 @@ const BackgroundWaitTool = Tool.make("t3_background_wait", {
154
failure: OrchestratorMcpFailure,
155
failureMode: "return",
156
dependencies,
157
-}).annotate(Tool.Title, "Wait on background work");
157
+})
158
+ .annotate(Tool.Title, "Wait on background work")
159
+ // Only marks which tasks keep the thread Working; Claude Plan mode blocks tools without this.
160
+ .annotate(Tool.Readonly, true)
161
+ .annotate(Tool.Destructive, false);
162
163
const ScheduleTaskTool = Tool.make("schedule_task", {
164
description:
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
+2
@@ -611,6 +611,8 @@ describe("ClaudeAdapterV2 MCP query overrides", () => {
611
.map((tool) => `mcp__t3-code__${tool.name}`)
612
.sort();
613
614
+ // regression: #32022 Claude Plan mode asks before every non-read-only MCP call
615
+ assert.include(readOnlyToolNames, "mcp__t3-code__t3_background_wait");
616
assert.deepEqual(
617
[...ClaudeAdapterV2.CLAUDE_READ_ONLY_T3_MCP_ALLOWED_TOOLS].sort(),
618
readOnlyToolNames,
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
+1
@@ -2023,6 +2023,7 @@ export const CLAUDE_T3_MCP_TOOL_WILDCARD = "mcp__t3-code__*";
2023
export const CLAUDE_READ_ONLY_T3_MCP_ALLOWED_TOOLS: ReadonlyArray<string> = [
2024
"mcp__t3-code__orchestrator_capabilities",
2025
"mcp__t3-code__list_scheduled_tasks",
2026
+ "mcp__t3-code__t3_background_wait",
2027
"mcp__t3-code__t3_thread_list",
2028
"mcp__t3-code__t3_thread_wait",
2029
"mcp__t3-code__t3_worktree_status",