Repository navigation
feat(provider): add native Muse Code support for orchestration v2 - #11392
cristianuibar wants to merge 595 commits into
Conversation
|
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 Validation and the native fork/rewind limitation are recorded in the PR description. No merge or closure of either Muse PR is implied. |
600a8a5 to
d8c75ec
Compare
463d0c6 to
e10a1e2
Compare
347efd8 to
98e4638
Compare
c267746 to
934da57
Compare
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.
bc73497 to
35a15f7
Compare
a1f8051 to
0337dd6
Compare
|
any update on this? |
fe4f6ad to
87c67bd
Compare
|
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. |
What Changed
Add Muse Code as a beta provider, disabled by default, through the official
@muse-code/sdkand 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-mappingatbd519e66b. 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
git diff --checkpass.@muse-code/sdk0.1.1 (npm latest). Meta's stable channel reported 1.3.0; its separate test binary matched the published SHA-256.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 includemax; 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.InvalidCuton both versions. Native rewind remains unavailable. Full-history forks retained the effective Contributor model according to session-scopedmodel/list, so the earlier 1.1.1 model-switch observation was not reproduced on these versions.ae08ccc38with 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.UI Changes
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
Implementation, review fixes, rebases, and verification: GPT-6 through Codex, with independent Codex subagent reviews.