mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 21:02:12 +03:00
AgentCard.handleRiskAccept was calling markRiskAccepted() before opening the RiskNoticeModal, which itself writes the same key via dontShowAgainKey on accept. Remove the redundant markRiskAccepted call and delete the now-unused helper so RiskNoticeModal (D16) is the sole canonical persistence owner. Add a spy-based test asserting the key is written exactly once per accept.