feat(mcp): expose thread model selection - #10557
Conversation
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR adds new MCP tools, including a mutating tool that changes the calling thread's model or provider and can invoke existing provider-switch orchestration. The implementation is localized, but the new MCP dispatch branches lack direct behavioral coverage, so the change warrants human review. Notes:
No code changes detected at You can add or adjust custom eligibility rules. Learn more. |
Thread transfer impact
This comment will update automatically after the next completed run. |
044770f to
5c8ac23
Compare
5c8ac23 to
8b921b1
Compare
453c17a to
64b3608
Compare
64b3608 to
b0152bc
Compare
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
ddef913
into
t3code/codex-turn-mapping
Part 7/16 of the shared-core and MCP stack. Based on #10556. Next: #10558.
Read thread configuration and change the calling thread provider/model/options through existing selection and switch commands.
This intentionally limits writes to the caller. Permission-mode changes, cross-thread configuration and multi-command retry transactions are separate work. Provider/model discovery already exists in orchestrator_capabilities.
The command choice is now shared with client-runtime through modelSelectionCommandType; MCP does not maintain a separate provider comparison.
MCP-only rebuild of #8695, preserving attribution to Julius Marminge's original work. Original branches remain available for separate service follow-ups.
Validation: The composed stack passes 94 tests across 12 focused files, including shared core MCP and real MCP/V2 integration, attachment intake, project RPC/service contracts, and client model command selection. Server/contracts/shared/client-runtime typechecks and targeted format/lint/diff checks pass. New behavior coverage lives with the shared operation; no per-tool mock suite was added. Current-head CI is shown below.
Layer size: 4 files, +59/-0. No domain-service production implementation or documentation files change in this MCP layer.
Prepared with Codex in the OpenAI agent runtime.
Note
Add
t3_thread_configurationandt3_thread_configureMCP tools for thread model selectiont3_thread_configurationtool that returns the calling thread's ID, model selection, runtime mode, and interaction modet3_thread_configuretool that dispatches a model-selection command to the current writable thread without changing permission modes or other threadsThreadToolkit, addst3_thread_configurationto the Claude read-only allowlist, and adds display-name entries in the T3 MCP presentation mapt3_thread_configureopens the current thread for writing and dispatches a command; callers that invoke it concurrently may interleave sequence numbers. Reviewers should checkThreadToolkitHandlersLiveconfigure handler in handlers.ts for dispatch and error-mapping behaviorMacroscope summarized b0152bc.