mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
The previous portable-mode settings were hard to discover and mostly explained through environment variables. Users could not pick a target folder from the desktop UI or clearly understand which config directory would become active after switching modes. This moves the control to a lower-priority storage section, makes the active directory source explicit, supports choosing a portable data folder, and prepares the desktop app for a controlled restart so the new storage location takes effect. Constraint: Directory picking and relaunch require the Tauri desktop runtime Rejected: Keep environment-variable-only setup | users could not discover or validate the target path from the app Confidence: high Scope-risk: moderate Tested: cd desktop && bun run test -- generalSettings settingsStore Tested: bun run check:desktop Tested: bun run check:native Tested: bun run check:coverage Tested: bun run verify Tested: Maintainer manual desktop UI test Not-tested: Windows relaunch path beyond existing native coverage