fix(server): preserve subagent reasoning effort and fast mode #16595
Mergedcevr(GitHub profile, opens in a new tab)merged 7 commits into
main fromrefs/pull/16595/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- @@ -1157,3 +1157,6 @@11571157 }11581158 }115911591160+ const inheritsOptions =1161+ instanceId === inheritedSelection.instanceId && model === inheritedSelection.model;1162+ const options =
- apps/server/src/mcp/OrchestratorMcpService.ts line 1305OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -1292,3 +1302,4 @@12921302 hasPendingChildRuns: hasPendingChildRuns(childProjection, childRun),12931303 providerInstanceId: task.providerInstanceId,12941304 model: task.model,1305+ options: (childRun?.modelSelection ?? childControls.thread.modelSelection)?.options ?? [],
- @@ -1282,3 +1292,4 @@12821292 null);12831293 const resultTransfer = resultTransfers[0] ?? null;12841294 const terminalStatus = terminalRun === undefined ? null : taskStatusForRun(terminalRun);1295+ const modelSelection = childRun?.modelSelection ??
maria-rcks closed this
maria-rcks reopened this
juliusmarminge added labelsmacroscope-review
juliusmarminge assignedjuliusmarminge
juliusmarminge changed the title
- packages/provider-core/src/server/orchestrationInstructions.ts line 13OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -10,4 +10,4 @@10101111 The \`t3-code\` MCP server provides app-owned orchestration. Treat these concepts distinctly:121213-- A delegated task/subagent is child work owned by the current thread. Use \`orchestrator_capabilities\` to discover the current provider/model IDs from the same live catalog as the composer, including configured custom models. Do not treat a native tool's model list as the full list of available subagent models. Prefer native subagent tools for same-provider work only when they support the chosen model. Use \`delegate_task\` with that provider instance and model when native tools cannot, including for same-provider work. Also use \`delegate_task\` for cross-provider or explicitly T3-owned child tasks. For a child task that needs a separate checkout, use \`delegate_task\` with \`isolation:"worktree"\` across any provider or model. It starts from the parent local commit and runs project setup; uncommitted edits are not copied. Retain each returned \`taskId\`, and use \`task_status\` or \`task_cancel\` to manage it. The returned \`childThreadId\` is backing storage for the subagent, not13+- A delegated task/subagent is child work owned by the current thread. Use \`orchestrator_capabilities\` to discover the current provider/model IDs from the same live catalog as the composer, including configured custom models. Do not treat a native tool's model list as the full list of available subagent models. Prefer native subagent tools for same-provider work only when they support the chosen model and no model options were requested. Use \`delegate_task\` with that provider instance and model when native tools cannot, including for same-provider work. Also use \`delegate_task\` for cross-provider or explicitly T3-owned child tasks. For a child task that needs a separate checkout, use \`delegate_task\` with \`isolation:"worktree"\` across any provider or model. It starts from the parent local commit and runs project setup; uncommitted edits are not copied. Retain each returned \`taskId\`, and use \`task_status\` or \`task_cancel\` to manage it. The returned \`childThreadId\` is ba
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge merged this9a05676
juliusmarminge closed this
Sign in to join this conversation.
cevr(GitHub profile, opens in a new tab) reviewed