Skip to content

Permission picker shows Supervised on an existing thread while the server still runs it as Full access #29632

Open

Description

@jmitz5

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.ts handleRuntimeModeChange only writes the composer draft; it sends nothing to the server.
  • ChatView.tsx label resolves composerDraft.runtimeMode ?? serverThread.runtimeMode ?? defaultRuntimeMode, so it shows the unsent draft value.
  • thread.runtime-mode.set is sent only from persistThreadSettingsForNextTurn, 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

  1. 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).
  2. Switch the picker to Supervised. Don't send from the composer.
  3. Send a message via t3 thread send or t3_thread_send asking the agent to run a shell command and write a file.
  4. Observed: picker shows Supervised; t3 thread show --messages 0 --json <id> reports full-access; provider log shows bypassPermissions; both actions run without approval.
  5. 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

#28110, #29010, #6508

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

  1. added
    via-triage
    on Nov 2, 2026
  2. jmitz5 commented on Nov 2, 2026

    @jmitz5
    Author

    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.

    Image
  3. svenrabe commented on Nov 20, 2026

    @svenrabe

    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.

  4. chrisohearn commented on Nov 23, 2026

    @chrisohearn

    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.set is still sent only from persistThreadSettingsForNextTurn in ChatView.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):

    1. Open an existing idle thread that is in Full access.
    2. Open thread settings, pick Supervised and close the sheet without sending.
    3. t3 thread show --json <id> still reports full-access.
    4. 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.

  5. matthewcosier commented on Nov 26, 2026

    @matthewcosier
    Contributor

    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 with expected "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:

    1. A run the client cannot see yet. On a session that cannot switch modes in place (Claude, for example), thread.runtime-mode.set detaches 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.
    2. 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.
    3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions