Repository navigation
Description
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.
Activity
jmitz5 commentedon Nov 2, 2026
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.
svenrabe commentedon Nov 20, 2026
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.
chrisohearn commentedon Nov 23, 2026
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:
Steps on mobile (traced from the v0.1.11 source, not yet run on a device):
t3 thread show --json <id>still reportsfull-access.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.
matthewcosier commentedon Nov 26, 2026
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:
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.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.test(web): permission picks on started threads reach the server (#29632)
test(web): permission pick on an idle thread reaches the server (#29632)