Skip to content

Incorrect warning "The model wants to edit files outside of your workspace" #276392

Closed

Description

@gabriel-r
  • Copilot Chat Extension Version: 1.388.0
  • VS Code Version: 1.105.1
  • OS Version: macOS 15.7.1 (24G231)
  • Feature (e.g. agent/edit/ask mode): Agent
  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Claude Sonnet 4.5
  • Logs: 🤷

Steps to Reproduce:

  1. Ask for changes in the workspace
  2. Notice how on each existing file change, the chat will prompt with this warning:

    Allow edits to sensitive files?
    The model wants to edit files outside of your workspace (lib/widgets/generic_table_viewer.dart). Do you want to allow this?

The file is clearly in the workspace folder.

Activity

  1. added
    chat-ext-issue
    on Nov 9, 2025
  2. removed
    chat-ext-issue
    on Nov 9, 2025
  3. pordyna commented on Nov 10, 2025

    @pordyna

    I'm having the same issue on:

    Version: 1.105.1
    Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084
    Date: 2025-10-14T22:33:36.618Z
    Electron: 37.6.0
    ElectronBuildId: 12502201
    Chromium: 138.0.7204.251
    Node.js: 22.19.0
    V8: 13.8.258.32-electron.0
    OS: Linux x64 6.16.3-1-default
    
  4. added
    ~info-needed
    on Nov 11, 2025
  5. connor4312 commented on Nov 11, 2025

    @connor4312
    Member

    Is your workspace in a symlinked folder?

  6. vs-code-engineering commented on Nov 11, 2025

    @vs-code-engineering
    Contributor

    Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

    For Copilot Issues, be sure to visit our Copilot-specific guidelines page for details on the necessary information.

    Happy Coding!

  7. added
    info-needed
    and removed
    ~info-needed
    on Nov 11, 2025
  8. gabriel-r commented on Nov 12, 2025

    @gabriel-r
    Author

    Is your workspace in a symlinked folder?

    No, it's a plain folder project.

  9. connor4312 commented on Nov 12, 2025

    @connor4312
    Member

    Can you please

    1. Run realpath <folder> where <folder> is your workspace folder
    2. Run realpath <file> where <file> is a file for which you see the warning for

    and let me know the results. Thanks!

  10. gabriel-r commented on Nov 14, 2025

    @gabriel-r
    Author

    I ran the commands, and received the same path in response.

  11. connor4312 commented on Nov 14, 2025

    @connor4312
    Member

    Can you please share the paths that you saw?

  12. gabriel-r commented on Nov 14, 2025

    @gabriel-r
    Author
    ~/Bekodu/bekodu-flutter % realpath ./       
    /Users/gr/Bekodu/bekodu-flutter
    
    ~/Bekodu/bekodu-flutter % realpath /Users/gr/Bekodu/bekodu-flutter/lib/features/meetup/presentation/controllers/meetup_controller.dart
    /Users/gr/Bekodu/bekodu-flutter/lib/features/meetup/presentation/controllers/meetup_controller.dart
    
  13. josh11s commented on Nov 27, 2025

    @josh11s

    got the same issue from yesterday. I worked well before..
    Alternativily, from codespace i can use copliot.

  14. gabriel-r commented on Nov 27, 2025

    @gabriel-r
    Author

    The issue is no more as of yesterday. Go figure 😐

  15. connor4312 commented on Nov 28, 2025

    @connor4312
    Member

    Thanks for confirming, this was probably addressed by one of the fixes I includedin 1.106. Let me know if you see it again.

  16. locked and limited conversation to collaborators on Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

info-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions