Files
codex/codex-rs/cli/tests
Anton Panasenko 794584993e Cancel folder trust prompts when the app server disconnects (#63262)
## 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
2026-11-23 04:58:33 +00:00
..
2026-04-27 23:33:59 -07:00