mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-15 20:55:28 +02:00
Dashboard tests that spawn sessions reach Config::save() through auto_split_layout_after_spawn, which wrote to the developer's real ~/Library/Application Support/ecc2/config.toml. The fixture's db_path pointed at a deleted temp dir, so the next `cargo run` failed with "unable to open database file". Under cfg(test), config_root() now returns a per-test-thread scratch directory that is removed when the thread exits, so no test can reach the real user config. Fixes #3276 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Y54kLgLGzLGqAxwLMFEc9