GeezerVison is showing github.com — feat(provider): add native Muse Code support for orchestration v2 by cristianuibar · Pull Request #11392 · pingdotgg/t3code
Conversation
What Changed
Add Muse Code as a beta provider, disabled by default, through the official @muse-code/sdk and orchestration V2's provider-instance registry. Users enable it on their T3 server and select its models from web, desktop, or mobile, including catalog-supported reasoning efforts.
The adapter provides native sessions, streaming, tools, approvals, questions, images, steering, interruption, saved-session continuation, compaction, and conversation-context handoff. Setup includes model discovery, health checks, updates, structured text generation, and CLI conversation import.
Public forks start a new session with portable conversation context. Native fork and rewind remain disabled because explicit completed-turn fork boundaries fail on the tested Muse versions. Separate Plan mode, controllable native subagents, automatic approval review, subscription-usage reporting, and automatic T3 tool injection are unavailable; native child activity remains visible.
Review fixes reject foreign-provider token-usage history, enforce one-message import budgets, remove API-key environment overrides regardless of name casing, and expose only known approval persistence scopes. The rebase also integrates Muse with V2's consolidated provider icon component.
Why
This implements Ideas #6892 and #5516 against #2829's orchestration V2, following the suggestion on #11258. The original implementation in #11258 remains open pending a maintainer decision. Neither PR implies approval to merge both implementations.
Updated against t3code/codex-turn-mapping at bd519e66b. The integration spans 68 files, with 9,626 additions and 247 deletions. It exceeds the contribution guidelines' preferred size; its scope is Muse and the necessary server/client integration.
Validation
- 711 tests pass across all 22 PR-touched test files. The final run includes the foreign-provider import regressions. After the upstream-only merge, 92 tests across the affected V2 runtime/import suites pass; the provider integration diff is unchanged. Coverage includes provider-instance isolation, lifecycle cleanup, import/resume, effort forwarding, approvals, portable forks, and unsupported rewind.
- Server, web, and mobile typechecks pass. PR-scoped lint has zero errors; existing warnings remain. Formatting and
git diff --check pass.
- Direct SDK/MSP checks passed on Muse Code 1.2.1-R2847.1 and 1.3.0-R3057.1, using
@muse-code/sdk 0.1.1 (npm latest). Meta's stable channel reported 1.3.0; its separate test binary matched the published SHA-256.
- On both CLI versions, Contributor turns requesting
max, process shutdown/restart, exact-session resume, marker recall, and a full-history native fork followed by another turn completed. All test hosts shut down with exit code 0. Both binary-exported schemas include max; SDK 0.1.1's older declaration omits it. These checks establish protocol acceptance and successful turns, not an independently observed effective effort at Meta's model endpoint.
- Explicit native forks at a completed turn ID returned
InvalidCut on both versions. Native rewind remains unavailable. Full-history forks retained the effective Contributor model according to session-scoped model/list, so the earlier 1.1.1 model-switch observation was not reproduced on these versions.
- Historical integrated web evidence below was captured on
ae08ccc38 with Muse 1.1.1. No new browser pass was performed for these review fixes; current validation is focused tests, typechecks, and direct SDK/MSP checks. Native desktop/mobile apps and relay/tunnel connections were not exercised.
- Independent Codex source review covered rebase adaptations and review fixes. GitHub CI requires maintainer approval for this fork; CodeRabbit skips this target branch.
UI Changes
| V2 base |
Muse enabled |
 |
 |

Watch stop and continuation (65 seconds). The shell command had produced output before the stop settled.


Watch the portable fork (76 seconds). Rewind reports unavailable and preserves history.
Checklist
- This PR is small and focused — focused on Muse; size exceeds the preferred limit and is disclosed above.
- I explained what changed and why.
- I included before/after screenshots for UI changes.
- I included video for interaction changes.
Implementation, review fixes, rebases, and verification: GPT-6 through Codex, with independent Codex subagent reviews.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
mjdouglas, emillaine, gabew100, and pedrosatin reacted with thumbs up emoji
|
Cross-reference: the original Muse integration is #11258, and it remains open pending a decision. Its branch and target are unchanged.
This PR is the separate orchestration V2 implementation requested following the discussion on #11258. It targets #2829 at e03e376a356c55ae028600f4eed9eda9138a5a0b, with references to the V2 adapter contract and wire contracts.
Validation and the native fork/rewind limitation are recorded in the PR description. No merge or closure of either Muse PR is implied.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
MuseAdapterV2 emits plan.updated with todo_list payloads for
session/todoListChanged, but declared emitsPlanUpdated/emitsTodoList
as false like adapters that never emit plans. Declare both true
(matching Codex/Claude/Cursor/OpenCode precedent) and cover with a
conformance assertion next to the native-todos test.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note 🤖 GPT-6 Astra responding on behalf of Theo
We're closing this as part of a cleanup of old PRs. Thank you for the time and care you put into this contribution.
The current comparison includes 1,481 files and 483,516 changed lines, with conflicts in 558 files against the target branch. Much of that comparison comes from diverged base history, beyond the change described here. The latest implementation commit is from 2026-09-19.
At this point, regenerating a focused patch against the current intended base would be easier to review and maintain than updating this PR. We appreciate the problem report and the work already done; this thread will remain available as a reference. If you revisit it, please confirm the current direction with us and link a fresh, focused PR back here.
|
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.
Assignees
No one assigned
Labels
size:XXL
1,000+ changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|