Skip to content

VSCode extension: permission mode resets from bypassPermissions to auto/acceptEdits mid-conversation #35822

Description

@zigpac

Description

After a recent VSCode extension update, the permission mode resets from Bypass Permissions to Auto / Accept Edits during an active conversation, without any user action.

Steps to reproduce

  1. Open a file in VSCode editor (so it is selected/highlighted)
  2. Open Claude Code panel and start a new conversation
  3. Select "Bypass Permissions" mode
  4. The selected file appears as context at the bottom of the conversation input
  5. During the conversation, the permission mode silently reverts to "Auto" or "Accept Edits"

Expected behavior

The permission mode should remain as "Bypass Permissions" for the entire conversation session, until the user explicitly changes it.

Actual behavior

The mode resets mid-conversation. This appears to correlate with the IDE file selection context being attached to the conversation.

Additional context

  • This did not happen before the recent extension update
  • skipDangerousModePermissionPrompt: true is set in settings.json
  • The issue seems related to the IDE selection feature (file context attachment), as the mode reset appears to coincide with file context being loaded

Environment

  • VSCode (Remote SSH)
  • Ubuntu Linux (server)
  • Claude Code VSCode extension (latest)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions