-
Notifications
You must be signed in to change notification settings - Fork 3k
[BUG] Auto-approve settings not synchronized across multiple VS Code windows #12038
Description
Problem Description
When using Roo Code with multiple VS Code windows open simultaneously, the auto-approve settings configured in the first window are not properly applied to subsequent windows. Even though auto-approve is enabled in Window A, Window B still prompts for approval on every action.
Environment
- VS Code Version: (please fill in)
- Roo Code Version: (please fill in)
- Operating System: Windows/Linux/macOS (please specify)
- Reproducibility: Always
Steps to Reproduce
- Open VS Code Window A and enable auto-approve (select permissions like "Read files", "Edit files", etc., and toggle "Enabled" on)
- Open a second VS Code Window B (File → New Window)
- Open a different project folder in Window B
- Start a Roo Code task in Window B that requires file operations or command execution
- Observe that Roo Code prompts for approval on every action, despite auto-approve being enabled globally
Expected Behavior
Auto-approve settings should be synchronized across all VS Code windows, or at least persist correctly when opening new windows.
Actual Behavior
The second window ignores auto-approve settings and prompts for manual approval on every action, significantly disrupting the workflow.
Related Issues
This may be related to:
- Issue: Multi - Window Mode Interference in RooCode (VS Code Extension) #5605 - Multi-Window Mode Interference
- Auto-approve does not apply, sometimes #5502 - Auto-approve does not apply, sometimes
Additional Context
- The auto-approve toggle in the UI appears to be "Enabled" in both windows
- This issue occurs consistently when working with multiple projects simultaneously
- As a workaround, users have to manually toggle auto-approve off and on in each new window
Possible Root Cause
The extension state (specifically auto-approval configuration) may be stored per-extension-host rather than globally, causing desynchronization between VS Code windows which run separate Extension Host processes.