DeepSeek-Reasonix
DeepSeek-Reasonix copied to clipboard
Fix desktop sandbox project override sync / 修复沙箱设置项目覆盖同步
Summary
- read Desktop Settings sandbox values from the active workspace's effective config, so project
reasonix.tomloverrides are visible instead of being hidden by user config - save sandbox edits back to the project config when the active project already defines sandbox or shell overrides; otherwise keep the existing user-default behavior
- persist
[tools.shell]during config rendering so the shell picker survives config round trips
Root Cause
- the desktop settings payload loaded sandbox fields from the user-level config, while runtime sessions load
reasonix.tomlafter the user config SetSandboxalways saved to the user config, so changing the UI tooffcould leave a project-levelbash = "enforce"override active
Cache and tool-surface notes
- No provider-visible prompt, request serialization, compaction, or cache-prefix behavior changes.
- Runtime tool behavior only changes when users edit sandbox settings in the desktop Settings panel.
Verification
go test ./... -run 'TestSettingsSandboxReflectsProjectOverride|TestSetSandboxUpdatesProjectOverrideConfig'in the desktop modulego test ./internal/configgo test ./...in the desktop modulego test ./...go mod tidyin the desktop modulegofmt -l .git diff --check
Fixes #4606