Permission picker shows Supervised on an existing thread while the server still runs it as Full access #29632
What happened#
On an existing Claude thread I switched the composer permission picker from Full access to Supervised. The picker showed Supervised from then on, but the server kept the thread as full-access and every Claude session started with permissionMode: "bypassPermissions". A test message asking the agent to run a shell command and create a file ran both with no approval prompt. Later messages reached the thread over MCP (t3_thread_send), not the composer. The mode only switched to approval-required once I sent a message from the composer.
Diagnosis#
v0.1.6, unchanged on main:
useComposerSelection.tshandleRuntimeModeChangeonly writes the composer draft; it sends nothing to the server.ChatView.tsxlabel resolvescomposerDraft.runtimeMode ?? serverThread.runtimeMode ?? defaultRuntimeMode, so it shows the unsent draft value.thread.runtime-mode.setis sent only frompersistThreadSettingsForNextTurn, right before a composer send/resume.
So the picker shows a mode that only takes effect on the next composer send. Threads driven by MCP or anything else keep the old mode while the UI shows the new one. Enforcement is correct for the stored mode. Suggest applying the mode immediately, or marking it pending. Reverse direction of #28110 / #29010.
Steps to reproduce#
- With default runtime mode Full access (built-in default), start a new Claude thread and send a first message from the composer (thread created
full-access). - Switch the picker to Supervised. Don't send from the composer.
- Send a message via
t3 thread sendort3_thread_sendasking the agent to run a shell command and write a file. - Observed: picker shows Supervised;
t3 thread show --messages 0 --json <id>reportsfull-access; provider log showsbypassPermissions; both actions run without approval. - Send any message from the composer: mode becomes
approval-required, next session uses"permissionMode":"default".
Expected: the picker change applies to the thread, or the label shows it as pending.
Version#
T3 Code (Beta) desktop 0.1.6, local server 0.1.6. Code unchanged on main as of 2026-11-02. Triage CLI: 0.1.6.
Environment#
macOS 14.8.4 (Darwin 23.6.0), Apple silicon. Desktop app against local server. Claude Agent (Haiku 5.5, low), Claude Code CLI 2.1.316. "No project" scratch thread; later messages via T3 MCP from a voice prototype and an agent.
Evidence#
- Projection row `runtime_mode = full-access` from creation (20:58:59Z) until the composer send, then `approval-required` at 21:47:27Z.
- Provider log: six session starts with `"permissionMode":"bypassPermissions"` (20:58:59Z to 21:34:37Z), then `"permissionMode":"default"` at 21:47:26Z after the composer send.
- Test at 21:34Z via `t3_thread_send`: `pwd; date; whoami` ran and `PERMISSION_TEST.txt` was created; `pendingRequestCount: 0`, no permission-request events.
- App passes `codesign --verify --deep --strict`; no permission-mode launch args in settings.
- Screenshot of composer showing "Haiku 5.5 Low · Supervised" to follow.
Related issues#
Fix applied or workaround#
After changing the picker, send one message from the composer so the mode syncs. Check the real mode with t3 thread show --messages 0 --json <thread-id> (runtimeMode).
Filed by#
Diagnosed with t3 triage by Claude Opus 5.5 (Claude Code), building on an earlier investigation by Claude Opus 5.5 in a T3 thread.
jmitz5(GitHub profile, opens in a new tab) added labelsvia-triage
tanstack-source added labelsbug
Same behaviour with the OpenCode provider, reported in #38677 and closed as a duplicate of this issue. Thread in Auto mode, switched to Full Access while a run was active: the following shell commands still created approval requests, and some waited for manual approval.
So the fix should cover every provider, not only Claude, and a switch during a running turn, not only between messages.
Still present on v0.1.11, and the mobile app behaves the same way.
Mobile. On an existing thread, the settings sheet's Permissions pick only updates the composer draft (
apps/mobile/src/features/threads/ThreadSettingsSheet.tsx:updateComposerDraftSettings(threadKey, { runtimeMode })). The mode reaches the server only when a message is delivered (apps/mobile/src/state/thread-outbox-model.ts:runtimeMode: message.runtimeMode ?? thread.runtimeMode) or when a held queue is resumed (resume-thread.ts).Web. Unchanged:
thread.runtime-mode.setis still sent only frompersistThreadSettingsForNextTurninChatView.tsx.Two more consequences beyond the label mismatch:
- An idle thread can't change mode without being sent a message, and that message starts a turn. That's awkward for a thread that other agents watch or that should stay idle.
- A message queued during a run carries the mode change, so the change lands in the middle of that run.
Steps on mobile (traced from the v0.1.11 source, not yet run on a device):
- Open an existing idle thread that is in Full access.
- Open thread settings, pick Supervised and close the sheet without sending.
t3 thread show --json <id>still reportsfull-access.- Send any message from mobile. The thread now reports
approval-required.
Expected: as in the original report, the pick applies to the thread right away (refused with a reason while a run is active), or is shown as pending.
Still present on web at
428684301a. A scenario that picks Supervised on an idle thread, reloads and reads the stored mode through the CLI fails on main withexpected "full-access" to be "approval-required".While working on a web fix we found three cases a fix has to hold, in case they help #30162, #40577 or the takeover:
- A run the client cannot see yet. On a session that cannot switch modes in place (Claude, for example),
thread.runtime-mode.setdetaches the session and ends the running turn. So an immediate pick must wait for the next send whenever a run may be active, and the thread detail alone is not enough to know that. It can still be loading, be behind the live thread shell, or report the previous provider's session after a provider change. - The client's own send in flight. Right after a send that moves the thread from a provider that can switch in place (Codex) to one that cannot (Claude), the new run is not visible yet. A pick sent at that moment ends the new turn.
- A leftover pick. The draft mode is never cleared on main, so every later send from that composer puts it back after another client changes the mode. Storing the mode the pick was made against, and applying a held pick only while the thread is still in that mode, fixes it without losing a pick made during a run.
Our branch has these as one pure decision function with an 11-row fixed table, plus the scenario above: https://github.com/matthewcosier/t3code/tree/fix/web-permission-pick-applies-now (web only, one commit on
428684301a). We are not opening another PR for it; happy to test either open PR against these cases.- A run the client cannot see yet. On a session that cannot switch modes in place (Claude, for example),
Sign in to join this conversation.
This is a comment Opus 5.5 told me to add, with a screenshot showing our test, since GitHub didn't let us attach it to the main message.