feat: add persisted external events for sessions

- Add protocol/core plumbing for external events (Op::ExternalEvent, EventMsg::ExternalEvent) and persist them in rollout.
- Tail per-thread external event inbox files in the TUI and apply steer/queue policy for model context.
- Render a distinct cyan/magenta history cell so events show in the transcript and on resume/replay.
- Add `codex events` CLI subcommand (send/show/tail/list/inbox-path) for demos and automation.

Tests: just fmt; cargo test -p codex-protocol; cargo test -p codex-core; cargo test -p codex-tui
This commit is contained in:
Josh McKinney
2026-01-22 16:04:45 -08:00
parent 4210fb9e6c
commit 2b7e8c7795
23 changed files with 1961 additions and 12 deletions
@@ -607,6 +607,7 @@ impl EventProcessor for EventProcessorWithHumanOutput {
| EventMsg::UndoCompleted(_)
| EventMsg::UndoStarted(_)
| EventMsg::ThreadRolledBack(_)
| EventMsg::ExternalEvent(_)
| EventMsg::RequestUserInput(_) => {}
}
CodexStatus::Running