Skip to content

[BUG] VSCode extension repeatedly asks for permission to edit the same file, even if Allow for this session is selected. #33047

Description

@mouritsen

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When Claude Code Chat wants to edit a file, it asks for permission to edit. I am offered 3 choices, 1. Yes 2. Yes, allow all edits this session 3. No. Clicking 1 or 2 makes no difference, I am repeatedly asked for permission to edit the same file. 18 times I was prompted for the same file before I just stopped using the chat.

What Should Happen?

When option 2. is selected, edits should be allowed for the entire session. I should not be prompted to allow again.

Error Messages/Logs

No errors were presented, just the same behavior repeated.

Steps to Reproduce

  1. Open a project in VS Code
  2. Ask Claude Code Chat to create a file test.md in .claude folder
  3. Ask Claude Code to update that file in a way that will cause it to make more than one edit
  4. When prompted to allow edits, choose option 2. Yes, allow all edits for this session
  5. Witness the same prompt repeated for eternity.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.72 Claude Code for VS Code extension

Platform

Google Vertex AI

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

This is not a repeat. I have already looked. This is for VS Code extension, not terminal, not on a Mac, it is not for Yes/No only options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    api:vertexIssue relates to GCP Vertexarea:permissionsbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:vscodeIssue specifically occurs in VS Codeplatform:windowsIssue specifically occurs on Windowsplatform:wslIssue specifically occurs on WSLstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions