mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
af358ef365
Mock and real mode shared tmp/dev-config, so toggling between them left residue each way: real connections (and a live local agent) showed in Settings during mock, and mock-cluster alerts lingered in real mode. The toggle script had an isolation flag but it only reached the standalone runtime, never managed-hot-dev. hot-dev.sh now routes mock mode to tmp/mock-data and real mode to tmp/dev-config, choosing the dir from the canonical PULSE_MOCK_MODE flag that toggle-mock writes to tmp/dev-config/.env. The flag is read from that file authoritatively rather than from the environment, because a stale PULSE_MOCK_MODE exported into the hot-dev supervisor from a prior mock run would otherwise keep real mode pinned to the mock dir. toggle-mock status now reports the isolated mock dir for hot-dev runtimes so it matches what the backend actually uses. Verified a full round trip: real -> dev-config (real connections only), mock -> mock-data (mock data only, no real bleed), real -> dev-config (no mock-cluster residue). Trade-off: real metrics history no longer accrues during mock UI sessions, which is the right call for clean dev switching.