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

Resolved 💬 4 comments Opened Mar 18, 2026 by zigpac Closed Mar 20, 2026

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)

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗