fix(provider-muse): enable Auto mode for Muse threads #38587
main fromrefs/pull/38587/head·opened View on GitHubRestore Auto mode for Muse threads and delegates. Verified locally on Linux and macOS against the same base and PR head.
Problem#
Muse delegates from an Auto thread fall back to Supervised and ask for command approval. Muse already has an automatic reviewer, but T3 Code does not offer Auto or select that reviewer.
Change#
Offer Auto for Muse threads and delegates. Map it to Muse's :auto-review profile with promptUnmatched and the sandbox enabled. Add Auto to the existing session start/resume test table and update both permission guides.
Scope#
Fixes #20739. Replaces closed, unmerged #23232. This restores expected Auto behavior for an existing provider. The promptUnmatched mapping follows the maintainer's stated preference when closing #35351.
Verification#
Rebased on 2026-11-26 onto main 66f7a6c28917; head 25243a2701. vp run check:changed 66f7a6c2891742f72663054d7d46e2d0c2cb7c1b passed formatting, lint, both unused-code checks, 10 affected package typechecks, and 72 tests. The native verification below predates this rebase.
The base reproduces the bug on both Linux and macOS. The PR head uses Auto, approves routine commands through Muse's reviewer, keeps protected edits subject to human approval, and preserves Auto after a server restart.
Both platforms were checked on head a6d1385ae06c7299dbc1ab9cb32f2d1f72ede2ba against base 66bc6145fe2b117a842d2172d3806474c2b16488. Each revision used a separate isolated T3 home, a disposable Git repository, and a real, signed-in Muse provider.
| Check | Linux | macOS |
|---|---|---|
| Reproduce the bug on base | Auto default stores approval-required; git status --short asks for human approval | Same result; permission menu also lacks Auto |
| Routine command on PR head | Thread stores auto; Muse's reviewer approves git status --short; command succeeds | Same result; UI offers Auto and shows it selected |
| Muse-to-Muse delegation | Omit runtimeMode; child inherits Auto and completes a command approved by the reviewer | Same result |
| Claude-to-Muse delegation | Covered on earlier revision fb7fc4d8df; not repeated on this head | Omit runtimeMode; Muse child inherits Auto and returns CLEAN after a command approved by the reviewer |
Reject a protected .git/config edit | Pending request rejected through T3's RPC API; file stays unchanged | Pending request rejected with Reject in the T3 UI; file hash stays unchanged |
| Resume after server restart | Same saved thread keeps Auto and completes another command approved by the reviewer | Same result; also confirmed the native Muse session ID is unchanged |
| Auto start/resume regression | Added test row fails on base (:ask-me instead of :auto-review) and passes on head | Same result |
On macOS, vp run check:changed 66bc6145fe2b117a842d2172d3806474c2b16488 passed formatting, lint, both unused-code checks, 10 affected package typechecks, and 72 tests across four files. vp run build:desktop passed all five tasks. Earlier Linux build and check results are recorded below with their tested revisions.
The human approval check used a protected write (protectedWrite:true, judgeEscalated:false). Escalation by the automatic reviewer (judgeEscalated:true) was not reproduced. Windows, native mobile, API-key sign-in, remote connections, packaged desktop installation/launch, and scenarios:prove were not tested.
Screenshots#
macOS#
Captured from the tested base and PR head. Before: Auto falls back to Supervised and the command waits for human approval. After: Auto is available and the command completes.
Before — base 66bc6145fe2b | After — head a6d1385ae0 |
|---|---|
A protected .git/config edit still waits for human approval in Auto. The test then clicked Reject and confirmed that the file hash was unchanged.
The model-catalog warning appeared on both revisions; the tests selected Spark explicitly. The failed Claude thread in the sidebar is the initial attempt with an expired token; the retry after sign-in passed.
Linux#
These Linux screenshots predate the rebases. Their Muse runtime-mode code is unchanged on this PR head.
Before (373ec12be6) | After (971523cd9b) |
|---|---|
Protected edit waiting for human approval in Auto:
Test environment and setup notes
- Both platforms: Muse Code
1.4.23-R8977.1, SDK1.4.6, and Muse Spark 1.3 at low effort, using existing Muse sign-in. - Linux: development server, CLI, MCP delegation, and T3's normal RPC API.
- macOS: macOS 27.0 on Apple Silicon, Node
26.13.1, real T3 development app and Browser panel. Cross-provider parent: Claude Code2.1.126, Haiku 4.5. Claude's expired OAuth token was refreshed before the successful retry. - Muse returned an empty model catalog on macOS on both base and head. Live tests selected Spark explicitly; it was also added as a custom model for the head UI. The catalog warning is unchanged by this PR.
- For the base regression check, only the Auto test-table row was added. Base production code stayed unchanged.
- Native events and saved thread state were inspected. These were live provider turns, not replay turns. No credentials are included in the evidence.
- These local results address verification that the worker VMs could not perform without Muse sign-in. The stopped pipeline has not been restarted.
Linux: sanitized native events and saved thread state
{
"pr": "https://github.com/pingdotgg/t3code/pull/38587",
"head": "a6d1385ae06c7299dbc1ab9cb32f2d1f72ede2ba",
"recordedAt": "2026-11-18T13:03:12.192108+00:00",
"environment": {
"os": "Linux",
"surface": "isolated development server, CLI and normal RPC API",
"muse": "1.4.23-R8977.1",
"sdk": "1.4.6",
"model": "muse-spark-1.3",
"reasoningEffort": "low",
"auth": "existing signed-in Muse Power account"
},
"base": {
"commit": "66bc6145fe2b117a842d2172d3806474c2b16488",
"appState": {
"runtimeMode": "approval-required",
"modelSelection": {
"instanceId": "muse",
"model": "muse-spark-1.3",
"options": [
{
"id": "reasoningEffort",
"value": "low"
}
]
}
},
"startedAt": "2026-11-18T12:57:13.627687+00:00",
"sessions": [
{
"source": "base-parent",
"model": "muse-spark-1.3",
"approvalMode": "promptUnmatched",
"profiles": [
":ask-me"
]
}
],
"approvalEvents": [
{
"source": "base-parent",
"loggerTime": "2026-11-18T12:58:06.766Z",
"method": "approval/requested",
"toolName": "bash",
"judgeEscalated": false,
"protectedWrite": false,
"approvalRef": "0ed63a93bd9f",
"command": "git status --short"
},
{
"source": "base-parent",
"loggerTime": "2026-11-18T12:59:10.445Z",
"method": "approval/resolved",
"decision": "abort",
"resolvedBy": "user",
"approvalRef": "0ed63a93bd9f"
}
],
"delegationRequests": []
},
"fixed": {
"commit": "a6d1385ae06c7299dbc1ab9cb32f2d1f72ede2ba",
"appState": {
"runtimeMode": "auto",
"modelSelection": {
"instanceId": "muse",
"model": "muse-spark-1.3",
"options": [
{
"id": "reasoningEffort",
"value": "low"
}
]
}
},
"delegatedChildren": [
{
"runtimeMode": "auto",
"modelSelection": {
"instanceId": "muse",
"model": "muse-spark-1.3",
"options": [
{
"id": "reasoningEffort",
"value": "low"
}
]
}
}
],
"startedAt": "2026-11-18T12:52:50.969070+00:00",
"sessions": [
{
"source": "head-parent",
"model": "muse-spark-1.3",
"approvalMode": "promptUnmatched",
"profiles": [
":auto-review"
]
},
{
"source": "head-child",
"model": "muse-spark-1.3",
"approvalMode": "promptUnmatched",
"profiles": [
":auto-review"
]
}
],
"approvalEvents": [
{
"source": "head-parent",
"loggerTime": "2026-11-18T12:52:59.049Z",
"method": "approval/reviewing",
"toolName": "bash",
"judgeEscalated": false,
"protectedWrite": false,
"approvalRef": "d59a78554b90",
"command": "git status --short"
},
{
"source": "head-parent",
"loggerTime": "2026-11-18T12:53:02.054Z",
"method": "approval/resolved",
"decision": "approved",
"resolvedBy": "llmJudge",
"approvalRef": "d59a78554b90"
},
{
"source": "head-parent",
"loggerTime": "2026-11-18T12:53:50.711Z",
"method": "approval/reviewing",
"toolName": "mcp__t3_code__delegate_task",
"judgeEscalated": false,
"protectedWrite": false,
"approvalRef": "6c6225987bc2"
},
{
"source": "head-parent",
"loggerTime": "2026-11-18T12:53:53.755Z",
"method": "approval/resolved",
"decision": "approved",
"resolvedBy": "llmJudge",
"approvalRef": "6c6225987bc2"
},
{
"source": "head-parent",
"loggerTime": "2026-11-18T12:55:50.888Z",
"method": "approval/requested",
"toolName": "edit_file",
"judgeEscalated": false,
"protectedWrite": true,
"approvalRef": "463436b23795"
},
{
"source": "head-parent",
"loggerTime": "2026-11-18T12:56:30.565Z",
"method": "approval/resolved",
"decision": "abort",
"resolvedBy": "user",
"approvalRef": "463436b23795"
},
{
"source": "head-parent",
"loggerTime": "2026-11-18T12:58:09.031Z",
"method": "approval/reviewing",
"toolName": "bash",
"judgeEscalated": false,
"protectedWrite": false,
"approvalRef": "34e6c2c2c35d",
"command": "git status --short"
},
{
"source": "head-parent",
"loggerTime": "2026-11-18T12:58:12.533Z",
"method": "approval/resolved",
"decision": "approved",
"resolvedBy": "llmJudge",
"approvalRef": "34e6c2c2c35d"
},
{
"source": "head-child",
"loggerTime": "2026-11-18T12:53:58.235Z",
"method": "approval/reviewing",
"toolName": "bash",
"judgeEscalated": false,
"protectedWrite": false,
"approvalRef": "248b55b6fc87",
"command": "git status --short"
},
{
"source": "head-child",
"loggerTime": "2026-11-18T12:54:00.498Z",
"method": "approval/resolved",
"decision": "approved",
"resolvedBy": "llmJudge",
"approvalRef": "248b55b6fc87"
}
],
"delegationRequests": [
{
"runtimeModeProvided": false,
"target": {
"providerInstanceId": "muse",
"model": "muse-spark-1.3",
"options": {
"reasoningEffort": "low"
}
},
"mode": "wait",
"isolation": "shared"
}
]
},
"protectedApproval": {
"runtimeMode": "auto",
"pendingKind": "file-change",
"fileUnchangedBeforeDecision": true,
"decision": "decline via normal T3 RPC API",
"fileUnchangedAfterDecision": true,
"nativeOutcome": "abort, resolvedBy:user",
"protectedWrite": true,
"judgeEscalated": false
},
"restart": {
"sameIsolatedHome": true,
"sameSavedThread": true,
"result": {
"status": "completed",
"reply": "CLEAN",
"error": null
},
"persistedMode": "auto"
},
"regression": {
"base": "Expected failure: received :ask-me, expected :auto-review; only Auto table row applied to unchanged production base.",
"head": "Same focused start/resume test passed (1 case, 48 unrelated cases skipped)."
},
"limitations": [
"LLM-judge escalation (judgeEscalated:true) was not reproduced; the native human gate used a protected write.",
"This run used CLI/RPC, including API denial; menu and UI captures in the PR come from the earlier revisions explicitly labelled there.",
"No claim is made that a worker VM can reproduce this without its own signed-in Muse installation.",
"That Linux repeat did not rebuild the current-head desktop or repeat broad checks; the later macOS current-head build/check results are recorded below."
]
}
macOS: sanitized app state, native events, delegates, and check results
{
"recordedAt": "2026-11-18T21:20:31.785877+00:00",
"environment": {
"os": "macOS 27.0",
"arch": "arm64",
"node": "26.13.1",
"muse": "1.4.23-R8977.1",
"sdk": "1.4.6",
"museModel": "muse-spark-1.3",
"museEffort": "low",
"claude": "2.1.126",
"claudeModel": "claude-haiku-4-5"
},
"base": {
"commit": "66bc6145fe2b117a842d2172d3806474c2b16488",
"requestedDefault": "auto",
"storedMode": "approval-required",
"uiModes": [
"Supervised",
"Full access"
],
"command": "git status --short",
"humanApproval": "requested, then rejected through UI: abort / user",
"regression": "Expected failure: received :ask-me, expected :auto-review; only the Auto test-table row was applied to unchanged production code."
},
"head": {
"commit": "a6d1385ae06c7299dbc1ab9cb32f2d1f72ede2ba",
"storedMode": "auto",
"uiModes": [
"Supervised",
"Auto",
"Full access"
],
"parentCommands": {
"storedMode": "auto",
"reviewer": "llmJudge",
"commands": [
{
"command": "git status --short",
"exit_code": 0,
"terminal_status": "completed",
"output": ""
},
{
"command": "git status --short",
"exit_code": 0,
"terminal_status": "completed",
"output": ""
}
]
},
"delegation": {
"museToMuse": {
"storedMode": "auto",
"reviewer": "llmJudge",
"commands": [
{
"command": "git status --short",
"exit_code": 0,
"terminal_status": "completed",
"output": ""
}
],
"runtimeModeProvided": false,
"target": {
"model": "muse-spark-1.3",
"options": [
{
"id": "reasoningEffort",
"value": "low"
}
],
"providerInstanceId": "muse"
},
"mode": "wait",
"isolation": "shared"
},
"claudeToMuse": {
"storedMode": "auto",
"reviewer": "llmJudge",
"commands": [
{
"command": "git status --short",
"exit_code": 0,
"terminal_status": "completed",
"output": ""
}
],
"runtimeModeProvided": false,
"target": {
"providerInstanceId": "muse",
"model": "muse-spark-1.3",
"options": {
"reasoningEffort": "low"
}
},
"mode": "wait",
"isolation": "shared"
}
},
"protectedApproval": {
"tool": "edit_file",
"protectedWrite": true,
"judgeEscalated": false,
"t3RequestKind": "file-change",
"decisionSurface": "Reject button in the real T3 web UI",
"decision": "abort",
"resolvedBy": "user",
"fileUnchangedWhilePendingAndAfterRejection": true
},
"restart": {
"sameIsolatedT3Home": true,
"sameSavedT3Thread": true,
"sameNativeSession": true,
"storedMode": "auto",
"reviewer": "llmJudge",
"reply": "CLEAN"
},
"checks": {
"changedFiles": 5,
"format": "pass",
"lint": "pass",
"knip": "both checks pass",
"affectedPackageTypechecks": "10 pass",
"selectedTests": "72 pass across 4 files",
"desktopBuild": "5/5 tasks pass"
}
},
"notes": [
"Claude initially failed with an invalid OAuth token; reauthentication and the retry succeeded.",
"Native Muse model/list returned an empty model catalog on this Mac, also on the base. Live tests explicitly selected Muse Spark 1.3; it was added as a custom model for the head UI.",
"No production source changes, commits, or force push were needed.",
"No claim of judgeEscalated:true, Windows, native mobile, packaged release installation, remote connections, or scenarios:prove."
]
}
Earlier Linux validation (revisions labelled)
On fb7fc4d8df, real app checks covered Auto review, Claude-to-Muse and Muse-to-Muse inheritance, rejection of a human approval request through the UI, and resume after server restart.
vp run check:changed 6a29d58d14passed formatting, lint, both unused-code checks, typechecks for 10 affected packages, and 73 selected tests. The pipeline later removed the extra status assertion and child-test parameterization; this PR keeps the profile regression case.vp run build:desktoppassed all five tasks on that revision.- The historical
RightPanelTabsflick/swipe test passed once on base6a29d58d14and once on headfb7fc4d8dfwith the same pinned Chromium. This does not rule out intermittent failures.
Original patch by Victor Vogel with Claude Opus 5.5. Plan reviewed by GPT-6.2 Astra and Muse Wonder; Muse Wonder was a reviewer only.
Implemented and verified with GPT-6.1 Sol in T3 Code.
- 1
- 2
- 3
- 4
Pushed25243a2
github-actions[bot](GitHub profile, opens in a new tab) removed labelsneeds-rebase
github-actions[bot](GitHub profile, opens in a new tab) added labelsneeds-rebase
Sign in to join this conversation.
This PR conflicts with
main. Rebase it or mergemaininto it. If it still conflicts after 7 days with no activity, it will be closed automatically.See the conflict window.