mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
## Why A daemon restart can invalidate the connection while a folder trust prompt is open. A queued confirmation can otherwise still be handled against that closed connection. ## What changed Dismiss the folder trust prompt when the connection closes, giving the disconnect priority over queued input. Leave the disconnect event for the Agents overview to handle. During startup, exit with a message asking the user to restart Codex. ## Testing Add tests for daemon restarts during folder consent in the Agents overview and at startup. Both check that the restart leaves the trust setting unset. A unit test checks that disconnect wins over queued Enter. GitOrigin-RevId: 21ee1ca625ed8bc2266a9a37a260254d4e87369d