Skip to content

[Bug]: "Always allow for session" permission is ignored for MCP tool calls (Repeatedly prompts for the same tools) #4512

Description

@eriskhan

Before submitting

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

Area

apps/desktop

Steps to reproduce

  1. Start a new session with the coding agent and connect to an MCP server (e.g., the JetBrains/IDEA MCP server).
  2. Prompt the agent to perform an action that triggers a tool call (e.g., searching for a file).
  3. When the approval prompt appears, select "Allow for session".
  4. Wait for the next tool call
Image

Expected behavior

The app should cache the "Allow for session" permission for a tool call. Subsequent executions of that specific tool call (with safe parameters) should be automatically approved without interrupting the workflow with additional prompts.

Actual behavior

The session permission is ignored, and the agent halts execution to request approval again for the same tool even in scope of same prompt.

Impact

Major degradation or frequent failure

Version or commit

main

Environment

macOS 26.4, T3 Code v0.0.29-nightly.20260725.899 (5719e8a), node v24.14.1, npm v11.12.1

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions