mirror of
https://github.com/openai/codex.git
synced 2026-10-24 23:54:33 +00:00
## Why Stopping a task from the agents overview may need to look up its active turn. Paginated threads should use the turn history endpoint instead of requesting embedded full history. ## What changed - Read the thread without turns first to determine its history mode. - Fetch the first turn page for paginated threads when the app server supports it. - Fall back to embedded turn history for legacy threads and legacy server negotiation. ## Testing Added coverage for paginated and legacy threads, including fallback after legacy capability negotiation. GitOrigin-RevId: 44d506b19e32c6b3c27fac11fb748c23b8e47b5e