Issue Description
When configuring chat.agent.sandbox.fileSystem.mac in user settings, the chat.agent.sandbox.enabled setting is forcefully enabled on every VS Code restart, preventing users from opting out of the sandbox even if they explicitly disable it.
Steps to Reproduce
- Add the following to your user settings:
"chat.agent.sandbox.fileSystem.mac": {
"denyRead": [],
"allowWrite": ["."],
"denyWrite": []
}
- Set
chat.agent.sandbox.enabled to "off" via the settings pane (This will remove it from the settings JSON, since "off" is the default)
- Restart VS Code
- 🐛Observe that
chat.agent.sandbox.enabled is automatically set back to "on"
Expected Behavior
Setting a filesystem configuration should not forcefully override the parent enabled setting.
Additional Context
Initially, I thought this might be related to ExP experiments changing from "setting defaults" to "forcefully setting values," but it appears this behavior is specific to the chat.agent.sandbox.enabled setting when filesystem configurations are present.
This seems like either:
- Unintended coupling between the filesystem config and the enabled flag
- Missing documentation that the presence of filesystem config implies enablement
- A policy enforcement that should be made more explicit to users
Issue Description
When configuring
chat.agent.sandbox.fileSystem.macin user settings, thechat.agent.sandbox.enabledsetting is forcefully enabled on every VS Code restart, preventing users from opting out of the sandbox even if they explicitly disable it.Steps to Reproduce
chat.agent.sandbox.enabledto"off"via the settings pane (This will remove it from the settings JSON, since "off" is the default)chat.agent.sandbox.enabledis automatically set back to "on"Expected Behavior
Setting a filesystem configuration should not forcefully override the parent
enabledsetting.Additional Context
Initially, I thought this might be related to ExP experiments changing from "setting defaults" to "forcefully setting values," but it appears this behavior is specific to the
chat.agent.sandbox.enabledsetting when filesystem configurations are present.This seems like either: