mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
## Why Interrupting a turn while a tool awaits approval can leave its rollout trace execution marked as running without an end timestamp. ## What changed Record an `Aborted` end event when a tool dispatch trace is dropped before producing a result. Make completion and failure methods consume the trace handle so each dispatch is closed once. ## Testing Add coverage for dropping a pending dispatch and for interrupting a turn with a pending command approval, verifying that replay reports an aborted execution with an end timestamp. GitOrigin-RevId: 63cf68312fcbff8c6b85a01a7713cf4460c9d795