GeezerVison is showing github.com — fix(mcp): orchestrator_capabilities marks favorite models by juliusmarminge · Pull Request #44574 · pingdotgg/t3code
Conversation
When an agent asked orchestrator_capabilities which models it could delegate to, the user's favorite models were always listed but looked exactly like custom models, the agent's own model and the first entries of a large catalog. So "use one of my favorite models" could not be answered from the response. Each listed model that the user has favorited for that provider instance now has favorite: true, and the contract in packages/contracts gains that optional field.
Fixes #44566
Reproduction on main
Commit 6ce5c5b (origin/main). Ran T3CODE_DEV_SEED=0 node apps/server/src/bin.ts serve on a fresh --base-dir, with userdata/settings.json enabling the opencode instance and favoriting three OpenCode models (openai/gpt-5.4-mini, anthropic/claude-haiku-4-5, openai/gpt-5.2). Added a scratch git project with t3 project add, then t3 thread start --provider opencode --model xai/grok-4.6 <proj> "Call orchestrator_capabilities exactly once with no arguments, list the opencode model ids and say which are my favorites according to that response alone". Real OpenCode 2.4.2 through the hub. The tool result in the thread's turn items listed 12 OpenCode models (omittedModels 99): the 3 favorites, the caller's own xai/grok-4.6, and 8 others (opencode/beam-free, opencode/big-pickle, openai/chat-latest, anthropic/claude-fable-5-2, anthropic/claude-fable-5-2-fast, anthropic/claude-haiku-5-5, anthropic/claude-opus-5-5, anthropic/claude-opus-5-5-fast). Every entry was only {id, label?, options?}. The agent answered: "None of them are marked as favorite models in that response." Failing test on factory/repro-44566: vp test run src/mcp/OrchestratorMcpService.test.ts -t "listed models" fails with favorites [[], []] instead of [["gpt-4"], ["oc/m10"]].
Evidence
Configured three OpenCode favorites on fresh databases, then ran real OpenCode 2.4.2 with xai/grok-4.6 using the reported prompt. Each run called orchestrator_capabilities exactly once with no arguments.
Reproduction script
Tests
vp test run src/mcp/OrchestratorMcpService.test.ts -t "listed models" without the fix: 1 failed (the repro test), 3 passed
vp test run src/mcp/OrchestratorMcpService.test.ts with the fix: 105 passed
vp run check:changed: format, lint, knip, graphql, typecheck (40 packages), test (5 files) all pass
- PR CI on 4a29222: all 8 required checks passed
Not in this change
- The
orchestrator_capabilities tool description still does not mention favorites; the self-describing result field was judged enough.
- No mcp-tool-use eval case was added or run for the new result field; evals need paid API keys that this run did not set up.
Who did the work
- Written by Claude Opus 5.5, in Claude Code
- Reviewed by GPT-6.1 Sol, in Codex, and by Claude Opus 5.5, each on its own
- Proof captured by GPT-6.1 Sol and checked by Claude Opus 5.5
Run by the t3code factory in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Fails on main: listed models carry no field that tells favorites apart
from custom models and the caller's own model.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Favorites were always listed but looked like custom models, the caller's
own model, and the first models of a large catalog, so agents could not
tell which models the user favorited. Listed models now carry
`favorite: true` when they are a favorite for that provider instance.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Thread transfer impact
✅ Thread transfer remains within every enforced ceiling.
| Provider |
Metric |
Main baseline |
This PR |
Impact |
PR ceiling |
|
| Codex |
Total thread wire |
5.0 KiB |
5.0 KiB |
0 B (0.0%) |
6.8 KiB |
✅ |
| Codex |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Codex |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
0 B (0.0%) |
2.0 KiB |
✅ |
| Codex |
Live turn WebSocket decoded |
21.5 KiB |
21.5 KiB |
0 B (0.0%) |
24.4 KiB |
✅ |
| Codex |
Live turn messages |
1 |
1 |
0 (0.0%) |
8 |
✅ |
| Claude |
Total thread wire |
5.0 KiB |
5.0 KiB |
0 B (0.0%) |
6.8 KiB |
✅ |
| Claude |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Claude |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
0 B (0.0%) |
2.0 KiB |
✅ |
| Claude |
Live turn WebSocket decoded |
21.9 KiB |
21.9 KiB |
0 B (0.0%) |
24.4 KiB |
✅ |
| Claude |
Live turn messages |
1 |
1 |
0 (0.0%) |
8 |
✅ |
Other scenarios
All 64 scenario measurements match main.
All 64 scenario measurements
| Provider |
Scenario |
Metric |
Main baseline |
This PR |
Impact |
PR ceiling |
|
| Codex |
short turn resume |
WebSocket decoded |
10.5 KiB |
10.5 KiB |
0 B (0.0%) |
12.7 KiB |
✅ |
| Codex |
short turn resume |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Codex |
long turn running, cold open |
HTTP decoded |
281.7 KiB |
281.7 KiB |
0 B (0.0%) |
302.7 KiB |
✅ |
| Codex |
long turn running, cold open |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Codex |
long turn running, history page |
HTTP decoded |
92.4 KiB |
92.4 KiB |
0 B (0.0%) |
107.4 KiB |
✅ |
| Codex |
long turn running, history page |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Codex |
long turn finished, cold open |
HTTP decoded |
381.5 KiB |
381.5 KiB |
0 B (0.0%) |
410.2 KiB |
✅ |
| Codex |
long turn finished, cold open |
rows |
151 |
151 |
0 (0.0%) |
151 |
✅ |
| Codex |
long turn finished, socket cold open |
WebSocket decoded |
381.6 KiB |
381.6 KiB |
0 B (0.0%) |
410.2 KiB |
✅ |
| Codex |
long turn finished, socket cold open |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Codex |
long turn finished, socket cold open |
rows |
151 |
151 |
0 (0.0%) |
151 |
✅ |
| Codex |
long turn finished, work page |
HTTP decoded |
186.2 KiB |
186.2 KiB |
0 B (0.0%) |
200.2 KiB |
✅ |
| Codex |
long turn finished, work page |
rows |
150 |
150 |
0 (0.0%) |
150 |
✅ |
| Codex |
idle thread resume |
WebSocket decoded |
65 B |
65 B |
0 B (0.0%) |
200 B |
✅ |
| Codex |
idle thread resume |
WebSocket messages |
1 |
1 |
0 (0.0%) |
1 |
✅ |
| Codex |
fleet shell snapshot |
HTTP decoded |
42.4 KiB |
42.4 KiB |
0 B (0.0%) |
53.7 KiB |
✅ |
| Codex |
fleet shell snapshot |
rows |
27 |
27 |
0 (0.0%) |
27 |
✅ |
| Codex |
fleet shell subscribe |
WebSocket decoded |
65 B |
65 B |
0 B (0.0%) |
200 B |
✅ |
| Codex |
fleet shell subscribe |
WebSocket messages |
1 |
1 |
0 (0.0%) |
1 |
✅ |
| Codex |
fleet shell resume check |
HTTP decoded |
18 B |
18 B |
0 B (0.0%) |
100 B |
✅ |
| Codex |
fleet shell resume check |
rows |
0 |
0 |
0 |
0 |
✅ |
| Codex |
stale shell reload |
HTTP decoded |
42.4 KiB |
42.4 KiB |
0 B (0.0%) |
53.7 KiB |
✅ |
| Codex |
stale shell reload |
rows |
27 |
27 |
0 (0.0%) |
27 |
✅ |
| Codex |
stale shell resume |
WebSocket decoded |
140 B |
140 B |
0 B (0.0%) |
400 B |
✅ |
| Codex |
stale shell resume |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Codex |
stale todo list cold open |
HTTP decoded |
72.4 KiB |
72.4 KiB |
0 B (0.0%) |
83.0 KiB |
✅ |
| Codex |
stale todo list cold open |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Codex |
stale todo list cold open |
nodes |
2 |
2 |
0 (0.0%) |
4 |
✅ |
| Codex |
stale todo list cold open |
subagents |
2 |
2 |
0 (0.0%) |
4 |
✅ |
| Codex |
stale todo list cold open |
plans |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Codex |
stale todo list cold open |
providerTurns |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Codex |
stale todo list cold open |
checkpoints |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Claude |
short turn resume |
WebSocket decoded |
10.6 KiB |
10.6 KiB |
0 B (0.0%) |
12.7 KiB |
✅ |
| Claude |
short turn resume |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Claude |
long turn running, cold open |
HTTP decoded |
283.3 KiB |
283.3 KiB |
0 B (0.0%) |
302.7 KiB |
✅ |
| Claude |
long turn running, cold open |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Claude |
long turn running, history page |
HTTP decoded |
93.4 KiB |
93.4 KiB |
0 B (0.0%) |
107.4 KiB |
✅ |
| Claude |
long turn running, history page |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Claude |
long turn finished, cold open |
HTTP decoded |
384.2 KiB |
384.2 KiB |
0 B (0.0%) |
410.2 KiB |
✅ |
| Claude |
long turn finished, cold open |
rows |
151 |
151 |
0 (0.0%) |
151 |
✅ |
| Claude |
long turn finished, socket cold open |
WebSocket decoded |
384.3 KiB |
384.3 KiB |
0 B (0.0%) |
410.2 KiB |
✅ |
| Claude |
long turn finished, socket cold open |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Claude |
long turn finished, socket cold open |
rows |
151 |
151 |
0 (0.0%) |
151 |
✅ |
| Claude |
long turn finished, work page |
HTTP decoded |
188.1 KiB |
188.1 KiB |
0 B (0.0%) |
200.2 KiB |
✅ |
| Claude |
long turn finished, work page |
rows |
150 |
150 |
0 (0.0%) |
150 |
✅ |
| Claude |
idle thread resume |
WebSocket decoded |
66 B |
66 B |
0 B (0.0%) |
200 B |
✅ |
| Claude |
idle thread resume |
WebSocket messages |
1 |
1 |
0 (0.0%) |
1 |
✅ |
| Claude |
fleet shell snapshot |
HTTP decoded |
43.0 KiB |
43.0 KiB |
0 B (0.0%) |
53.7 KiB |
✅ |
| Claude |
fleet shell snapshot |
rows |
27 |
27 |
0 (0.0%) |
27 |
✅ |
| Claude |
fleet shell subscribe |
WebSocket decoded |
66 B |
66 B |
0 B (0.0%) |
200 B |
✅ |
| Claude |
fleet shell subscribe |
WebSocket messages |
1 |
1 |
0 (0.0%) |
1 |
✅ |
| Claude |
fleet shell resume check |
HTTP decoded |
18 B |
18 B |
0 B (0.0%) |
100 B |
✅ |
| Claude |
fleet shell resume check |
rows |
0 |
0 |
0 |
0 |
✅ |
| Claude |
stale shell reload |
HTTP decoded |
43.0 KiB |
43.0 KiB |
0 B (0.0%) |
53.7 KiB |
✅ |
| Claude |
stale shell reload |
rows |
27 |
27 |
0 (0.0%) |
27 |
✅ |
| Claude |
stale shell resume |
WebSocket decoded |
140 B |
140 B |
0 B (0.0%) |
400 B |
✅ |
| Claude |
stale shell resume |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Claude |
stale todo list cold open |
HTTP decoded |
73.4 KiB |
73.4 KiB |
0 B (0.0%) |
83.0 KiB |
✅ |
| Claude |
stale todo list cold open |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Claude |
stale todo list cold open |
nodes |
2 |
2 |
0 (0.0%) |
4 |
✅ |
| Claude |
stale todo list cold open |
subagents |
2 |
2 |
0 (0.0%) |
4 |
✅ |
| Claude |
stale todo list cold open |
plans |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Claude |
stale todo list cold open |
providerTurns |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Claude |
stale todo list cold open |
checkpoints |
1 |
1 |
0 (0.0%) |
2 |
✅ |
Baseline: f597454 · PR result: 4a29222 · Source CI: success
Scenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 108.5 KiB
- Claude decoded thread snapshot: 108.8 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The orchestrator_capabilities listing now marks configured favorite models with favorite: true. The provider model-entry contract permits this optional field, and tests verify favorite and non-favorite entries.
Changes: Favorite Capability Metadata
| Layer / File(s) |
Summary |
Mark favorite models in capability listings packages/contracts/src/orchestratorMcp.ts, apps/server/src/mcp/OrchestratorMcpService.ts, apps/server/src/mcp/OrchestratorMcpService.test.ts |
The model-entry schema permits favorite: true. The listing uses configured favorites when pinning models and marks matching entries. Tests check favorite models and entries that are not favorites. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Feature · Severity of issue fixed: Low
Suggested reviewers: gabrielelpidio, navidnadali
Merge Risk: Minimal · up to 4a292
-
The capabilities listing now marks favorite models with an optional flag. The change is additive and low risk, with tests covering favorite and non-favorite entries.
Pre-merge checks: 3 · 1
-
Failed checks: 1 inconclusive
| Check name |
Status |
Explanation |
Resolution |
| Linked Issues check |
 |
Issue #44566 requires that agents can tell which listed models are the user's favorites in orchestrator_capabilities output. Verified at head: packages/contracts/src/orchestratorMcp.ts adds optional f… |
Provide the diff or the head source of apps/server/src/mcp/OrchestratorMcpService.ts around listCapabilityModels and the capabilities mapping, and the test hunk in OrchestratorMcpService.test.ts, so that the favorite: true assignment and it… |
Passed checks: 3 passed
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title "fix(mcp): orchestrator_capabilities marks favorite models" names the main change: the orchestrator_capabilities listing now sets favorite: true on models the user favorited for a provider i… |
| Out of Scope Changes check |
 |
The PR changes three files, based on the supplied summary and the verified contract diff: packages/contracts/src/orchestratorMcp.ts (adds the optional favorite field), apps/server/src/mcp/Orchestrator… |
| Description check |
 |
The description covers the problem (agents cannot tell favorite models apart in orchestrator_capabilities results), the change (a per-model favorite: true marker plus an optional contract field), scop… |
Full details: Title check
-
Explanation
The title "fix(mcp): orchestrator_capabilities marks favorite models" names the main change: the orchestrator_capabilities listing now sets favorite: true on models the user favorited for a provider instance. It follows the conventional commit format and is specific. It does not mention the contracts field, but that is a supporting detail.
Full details: Out of Scope Changes check
-
Explanation
The PR changes three files, based on the supplied summary and the verified contract diff: packages/contracts/src/orchestratorMcp.ts (adds the optional favorite field), apps/server/src/mcp/OrchestratorMcpService.ts (sets favorite on favorited models), and apps/server/src/mcp/OrchestratorMcpService.test.ts (tests favorite reporting and the expected list). All three connect directly to the favorite flag required by #44566. The contract diff is a two-line addition with a doc comment and no unrelated edits. No unrelated change was found in the evidence read. The service-file diff was not directly readable, so this result relies on the summary for that file.
Full details: Description check
-
Explanation
The description covers the problem (agents cannot tell favorite models apart in orchestrator_capabilities results), the change (a per-model favorite: true marker plus an optional contract field), scope (it links the issue #44566 and the reproduction is on main), and verification (before/after runtime captures, a failing-then-passing focused test, check:changed passing, and CI passing). It also names the models and the tooling used. Minor gaps: the Scope section does not state why the change is a bug fix rather than a feature, although the linked issue is cited. The description also does not explicitly say whether the tool description was left unchanged for a reason, though it does note that.
Full details: Linked Issues check
-
Explanation
Issue #44566 requires that agents can tell which listed models are the user's favorites in orchestrator_capabilities output. Verified at head: packages/contracts/src/orchestratorMcp.ts adds optional favorite: Schema.Literal(true) to each listed model entry in OrchestratorMcpProviderCapability. This is the requested per-model flag. Not verified: the change in apps/server/src/mcp/OrchestratorMcpService.ts that sets favorite: true for configured favorites (isFavorite predicate in listCapabilityModels or the capabilities mapping). The whole-PR diff for that file was unavailable, and the head blob read was truncated before the capabilities code. The new test in OrchestratorMcpService.test.ts was also not read. The PR test results (1 failed before the fix, 105 passed after) and the AI-generated summary describe this behavior, but they are not source evidence. The tool description is not updated. The issue suggests this as an option, and the expected behavior does not require it. No coding requirement is confirmed as unmet.
Resolution
Provide the diff or the head source of apps/server/src/mcp/OrchestratorMcpService.ts around listCapabilityModels and the capabilities mapping, and the test hunk in OrchestratorMcpService.test.ts, so that the favorite: true assignment and its per-provider-instance matching can be checked.
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between f597454 and 4a29222.
Files selected for processing: 3
-
apps/server/src/mcp/OrchestratorMcpService.test.ts
apps/server/src/mcp/OrchestratorMcpService.ts
packages/contracts/src/orchestratorMcp.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:S
10-29 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|