mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:10:42 +00:00
## Why Pending classifications can outlive the `max_tool_call_lag` window in which their scores are reusable, keeping metadata waits or classifier transports active after the result becomes stale. ## What changed - Expire pending classifications when tool-call progress exceeds the configured lag allowance, preserving the wrapper discount while nested code-mode actions remain active. - Cancel metadata waits and sampling in snapshot and conversation modes, including snapshot response drains after an early score. - Treat expiry as supersession, preserving cached scores and the last completed conversation checkpoint and transcript cursor. ## Testing Add regression coverage for lag boundaries, active wrapper discounts, transport cancellation before and after early scores, expired requests skipping preparation, and conversation history and transcript deltas surviving cancellation. GitOrigin-RevId: 892ff13a05fd2b1573cef9842b934d1fc865d951