fix(server): honor requested same-model subagent counts #25154
Problem#
A Sol xhigh parent can interpret the injected “One child per named model” sentence as a hard cap. In the real web client, asking for two Sol children in separate worktrees substituted a different model for the second child; explicitly requiring both to use codex/gpt-6.1-sol then produced a refusal citing the cap.
Change#
Replace that sentence with an instruction to honor the requested number of children, including several using one model. All other model-selection, settings, and worktree instructions stay intact.
Scope and approval#
Fixes pingdotgg/t3code#24967
Triaged bug via the automated issue flow. This focused correction restores explicitly requested same-model delegation through the existing capability.
Verification#
- Reproduced on main 264969317c using the actual web dev server on Linux, Codex CLI 0.163.0, and a Sol xhigh parent. Before runtime transcript.
- Verified fix 7e92300c26: two same-model children completed; two same-model children completed in separate worktrees; the explicit exact-model correction also ended with two
codex/gpt-6.1-solxhigh children replyingOK. The recorded parent protocol contains the replacement instruction. After runtime transcript, exact prompts, results, and workspace identities. - The run included an HTTP 503 response despite child completion and a later worktree-preparation timeout. The exact-model correction required a same-model retry for its second successful child; both failures remain in the transcript.
vp run check:changedpassed format, lint, both knip checks, and typechecks for 21 affected packages. Check output.- After merging current main,
vp test run apps/server/src/provider/CodexDeveloperInstructions.test.ts apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts packages/provider-core/src/server/runtimeInstructions.test.ts: 72 passed. Test output. The changed Codex instruction entry remains below its 4,000-byte limit. - No model-in-the-loop eval harness exists here; a new substring assertion would check wording rather than the reported refusal. Runtime evidence is the proof. Independent proof audit found the narrow fix sufficient.
- No render paths, contracts, persisted data, or scheduler limits changed. The shared server instruction reaches every client; other provider/model combinations and native Windows execution were not exercised. Runtime instruction compliance remains model-dependent.
Supplementary real-client captures (1280×800, light theme):
| Before: cap-based refusal | After: exact-model worktree results, with retry disclosed |
|---|---|
![]() | ![]() |
Implemented with Claude Opus 5.5 in the Claude harness; orchestrated and verified with GPT-6.1 Sol in the Codex harness.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
ℹ️ The exact PR base did not have a successful artifact. Baseline uses the latest successful
mainmeasurement shown below.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 20.9 KiB 20.9 KiB 0 B (0.0%) 29.3 KiB ✅ Codex Live turn messages 2 2 0 (0.0%) 8 ✅ Claude Total thread wire 5.0 KiB 5.0 KiB +7 B (+0.1%) 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 +7 B (+0.6%) 2.0 KiB ✅ Claude Live turn WebSocket decoded 21.2 KiB 21.2 KiB 0 B (0.0%) 29.3 KiB ✅ Claude Live turn messages 2 2 0 (0.0%) 8 ✅ Baseline:
1a13127· PR result:863c93b· Source CI: successScenario 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.
No actionable comments were generated in the recent review.
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: fix/issue-24967
- File: .coderabbit.config.ts
- Commit: 863c93b
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Team
- Run ID:
f7ee5894-5773-4a2c-9d2a-8a852caed266
Commits-
Reviewing files that changed from the base of the PR and between 44df3360165ba96a6902496812feca2b60c7fcc9 and 863c93bf5660a3bcabca4ad448eec8db4784adb8.
Files selected for processing: 1-
packages/provider-core/src/server/orchestrationInstructions.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
-
Walkthrough
-
The orchestration instructions now allow the requested number of delegate children, including multiple children that use the same model. The previous one-child-per-named-model restriction was removed.
Changes: Delegate count guidance
Priority:Layer / File(s) Summary Update delegate count instruction
packages/provider-core/src/server/orchestrationInstructions.tsThe instructions now allow multiple delegate children for the same named model when the user requests them. NormalEstimated code review effort: 1 (Trivial) | ~5 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related PRs
- pingdotgg/t3code#24850: This PR modifies the same orchestration guidance block and defines delegate behavior.
- pingdotgg/t3code#25127: This PR updates the same guidance block and defines delegate-count behavior.
Suggested labels:
bugfix,size:XSSuggested reviewers:
t3dotgg
Merge Risk:
Minimal · up to863c9-
No actionable merge-blocking risk was identified.
Pre-merge checks:
3 · 1-
Failed checks: 1 warningCheck name Status Explanation Resolution Linked Issues check The instruction change satisfies the main behavior in [ #24967]. It now directs the parent to start the requested number of children, including several children with one model. However, [#24967] also r…Add an automated orchestration eval for two distinct successful launches with the same provider and model. Require the requested model for both children. Reject one child, parent-only work, or model substitution. Passed checks: 3 passed-
Check name Status Explanation Title check The title clearly and concisely describes the main change: honoring requested counts for same-model subagents. Description check The description covers the problem, change, scope and approval, verification results, limitations, screenshots, and agent disclosure. It provides specific runtime and test evidence. Out of Scope Changes check The PR changes one sentence in packages/provider-core/src/server/orchestrationInstructions.ts. The change directly implements [#24967]. No unrelated source, contract, persistence, scheduler, or rend…Full details: Out of Scope Changes check
-
Explanation
The PR changes one sentence in
packages/provider-core/src/server/orchestrationInstructions.ts. The change directly implements [#24967]. No unrelated source, contract, persistence, scheduler, or render changes are present in the reviewed diff.
-
Full details: Linked Issues check
-
Explanation
The instruction change satisfies the main behavior in [
#24967]. It now directs the parent to start the requested number of children, including several children with one model. However, [#24967] also requests an orchestration eval with two distinct successful same-model launches and rejection of parent-only work or model substitution. The PR changes onlypackages/provider-core/src/server/orchestrationInstructions.tsand adds no such automated eval. Runtime transcripts do not replace the requested eval.Resolution
Add an automated orchestration eval for two distinct successful launches with the same provider and model. Require the requested model for both children. Reject one child, parent-only work, or model substitution.
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
-
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


Approvability#
Verdict: Needs Human Approval
Macroscope's review found this PR requires human approval — This updates shared orchestration instructions used by multiple provider integrations, changing default behavior so repeated same-model subagents can be launched. The fix is narrowly scoped, but because it changes a product default, human review is warranted.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).