Skip to content

[severe; security] GitHub Copilot per-workspace enablement doesn't persist in v1.117+, forcing user to open entire system to information leakage #311898

@garretwilson

Description

@garretwilson

v1.117 breaks per-workspace opt-in because the per-workspace setting does not persist after workspace restart. (Remember that v1.116 forced AI to be enabled on a system basis, breaking the ability to opt-in AI on a per-workspace basis; see #310143 .)

  1. Open Workspace 1 in a VS Code instance. (This workspace has never been used with GitHub Copilot.)
  2. Ctrl+X to bring up installed extensions.
  3. Search for "GitHub Copilot Chat".
  4. Right-click and select "Disable AI Features. (Optional: Restart by closing and opening Workspace 1 in a VS Code instance.)
  5. Open Workspace 2 in a separate VS Code instance. (This workspace has a long history of AI.)
  6. Ctrl+X to bring up installed extensions.
  7. Search for "GitHub Copilot Chat".
  8. Right-click and select "Enable AI Features (Workspace)".
  9. The previous chat history appears in the side panel.
  10. Close the VS Code instance.
  11. Reopen Workspace 2 in a separate VS Code instance.

Expected: The side chat panel continues to show the ongoing chat history.

Actual: The side chat panel is blank. AI features have been toggled back off for that workspace.

Bug: Restarting the session discards the "Enable AI Features (Workspace)" setting; it is not persisted.

Workaround: Each time an AI workspace is loaded, manually reenable AI. Unfortunately there is no workaround, because GitHub Copilot does not function correctly if not enabled when VS Code starts, due to #312610.

Note that I am relying on per-workspace storage in ``C:\Users\user\AppData\Roaming\Code\User\workspaceStorage. I do not have a separate .vscode` for the workspace. This should make no difference.

Version: 1.117.0 (user setup)
Commit: 10c8e557c8b9f9ed0a87f61f1c9a44bde731c409
Date: 2026-04-21T16:12:14-07:00
Electron: 39.8.7
ElectronBuildId: 13841579
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions