mirror of
https://github.com/openai/codex.git
synced 2026-10-22 17:58:46 +00:00
## What changed Add `MessageLifecycleContributor` hooks to capture extension state when local agent control publishes a message and notify contributors when the recipient commits it to history, before sampling. Carry shared delivery state through submissions, input queues, and mailbox eviction with `PendingAgentMessage`. Notify consumption at most once per delivery, release captured state when consumed or abandoned, and drop pending mail outside queue locks. Preserve the serialized message format without republishing restored history. ## Testing Extend the mailbox eviction test to verify that publication state survives eviction and retained messages are consumed before the first resumed model sample. GitOrigin-RevId: 9a1f6832bd48ec646a3fd179485c095e8dcc72cc