Skip to content

[BUG] Auto-approve settings not synchronized across multiple VS Code windows #12038

@gentzhu

Description

@gentzhu

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

  1. Open VS Code Window A and enable auto-approve (select permissions like "Read files", "Edit files", etc., and toggle "Enabled" on)
  2. Open a second VS Code Window B (File → New Window)
  3. Open a different project folder in Window B
  4. Start a Roo Code task in Window B that requires file operations or command execution
  5. 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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions