Repository navigation
Muse Code: offer Auto by selecting Muse's permission profiles #19294
Closed
Knuckles92
started this conversation in
Ideas
Replies: 1 comment
|
Closing as a duplicate of #20739, which tracks the same request. Please follow along there. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Muse Code threads in T3 offer only Supervised and Full access. The provider says Muse "has no native … reviewer-backed mode" (
packages/provider-muse/src/server/status.ts), but since 1.4.6 it does: Muse has permission profiles, and its built-in:auto-reviewprofile ("Same access as Ask me; AI reviews eligible actions") is what Muse users get by default in the CLI. T3's Auto mode ("Supported providers approve routine actions; others still ask") maps onto it directly.The same gap causes a bug: T3 never names a profile, so Supervised Muse threads get Muse's default
:auto-reviewwith its AI reviewer attached. Reported with evidence in #19293.Proposal
Pick Muse's permission profile from the T3 runtime mode, on Muse 1.4.6+:
promptUnmatched:ask-me(user reviews)promptUnmatched:auto-review(AI reviews, escalates the rest)allowAllsession/start.permissionProfile, which is on Muse's stable MSP surface.session/resumetakes no profile, andsession/setPermissionProfileis experimental-only. Turning onexperimentalApifor the whole connection also opts it into experimental prompts T3 does not handle (admission/request, among others), so instead a short-lived host withexperimentalApiresumes the session, selects the profile, and exits before the normal host attaches the session. Muse runtime-mode changes already reopen the host, so this covers switching an existing thread between Supervised and Auto. Cost: one extramuse servestartup (about 0.4 s here) when a Supervised or Auto thread reopens.Verified against Muse 1.4.7: the profile and approval mode are independent (
setApprovalModeleaves the profile alone), and a profile set by the short-lived host is still in effect when the normal host resumes the session.Questions for maintainers
:ask-methe intended direction? It means more prompts in Supervised than Muse users see today, since today they silently get the AI reviewer.session/setPermissionProfile(or a resume-time profile) on its stable surface, and fix only new sessions for now?:unrestrictedexplicitly? I left it unchanged to keep the scope small.I have this implemented with focused tests (adapter, status, SDK), and the existing Muse replay fixtures still pass. I'll open a PR if the direction and scope look right.
All reactions