Skip to content

[Bug]: Switching a Claude thread to Full access mid-turn doesn't lift capability_denied for T3 MCP project tools until the next message #42109

Duplicate

Description

@pawelwitek34

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Related, but not the same symptom: #39866 (Antigravity permission handler keeps the turn's runtime policy), #42024 (mode change during a turn detaches Claude sessions and fails the turn). Here the turn does not fail; the T3 MCP capability gate keeps using the old mode for the rest of the turn.

Area

apps/server

Steps to reproduce

  1. Claude thread in auto runtime mode.
  2. Ask the agent to register a folder as a project. It calls t3_project_create and gets capability_denied: Changing projects or environment settings needs a live full-access/default calling thread or a full-access client.
  3. As the instructions suggest, the agent asks the user (via AskUserQuestion) whether they will switch to Full access. The user answers "yes, I'll switch" and switches the thread to Full access in the picker while the turn is still running.
  4. In the same turn, the agent retries t3_project_create.

Expected behavior

Either the retry succeeds because the thread is now Full access, or the UI makes clear that the change applies only from the next message, so the user knows to send one.

Actual behavior

The retry fails with the same capability_denied, although the picker already shows Full access. The agent has to end the turn and ask the user to confirm again. After the next user message ("switched"), the same call succeeds.

The asking flow makes this likely: the agent asks the user to switch, the user does it immediately while the turn is still running, and the agent naturally retries in the same turn.

Impact

Minor bug or occasional failure

Version or commit

0.1.12-nightly.20261124.5178 (desktop app, macOS)

Environment

macOS, Claude provider (Claude Code harness).

Workaround

After switching the mode, send another message so a new turn starts.

Possible fixes

  • Re-read the thread's current runtime mode in the T3 MCP capability check instead of the mode the turn started with.
  • Or show next to the picker: "applies from the next message".
  • Or say in the capability_denied error that a mode change is pending and will apply on the next turn.

Activity

  1. juliusmarminge commented on Nov 24, 2026

    @juliusmarminge
    Member

    This is the same problem as #29632, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions