Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): name the taskIds key in t3_background_wait guidance #31914

Closedjuliusmarmingewants to merge 9 commits intomain fromrefs/pull/31914/headopened View on GitHub

Showing 5 changed files with 5 additions and 2 deletions (loading 2).

x
0 of 5 viewed, 5 left
1 addition and 1 deletionapps/server/src/mcp/toolkits/orchestrator/tools.tsModified
View file
@@ -142,7 +142,7 @@
​
const BackgroundWaitTool = Tool.make("t3_background_wait", {
description:
- "Keep this thread in Working while background work runs. Pass its task ID after starting it. Not for work left running (dev server, watcher). `waiting=false` clears. Does not stop the task. Claude only.",
+ "Keep this thread in Working while background work runs. Pass `taskIds` after starting it. Not for work left running (dev server, watcher). `waiting=false` clears. Does not stop the task. Claude only.",
parameters: Schema.Struct({
taskIds: Schema.Array(TrimmedNonEmptyString).check(
Schema.isMinLength(1),
3 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -730,6 +730,9 @@
assert.equal(systemPrompt.preset, "claude_code");
assert.include(systemPrompt.append ?? "", "Use `delegate_task`");
assert.include(systemPrompt.append ?? "", "call `t3_background_wait`");
+ const backgroundWaitKey: keyof typeof OrchestratorToolkit.tools.t3_background_wait.parametersSchema.fields =
+ "taskIds";
+ assert.include(systemPrompt.append ?? "", `\`${backgroundWaitKey}: [id]\``);
assert.notInclude(systemPrompt.append ?? "", "## T3 Code devices");
const logged = ClaudeAdapterV2.loggedClaudeQueryOptions(options);
assert.equal(logged.hasMcpServers, true);
1 addition and 1 deletionapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.tsModified
View file
@@ -1951,7 +1951,7 @@
### Background work you wait on