mirror of
https://github.com/openai/codex.git
synced 2026-09-08 15:50:34 +00:00
## Why Building a resume-picker preview for a legacy session should not require loading its full thread history. ## What changed - Read up to six preview lines by scanning at most 1 MiB from the end of a local legacy rollout. - Fall back to the existing history hydration path when the local file is unavailable, the bounded scan is incomplete, or the tail contains a rollback. - Keep the initial `thread/read` request turn-free while loading the preview. ## Testing Added coverage for compaction, rollbacks, oversized records, exhausted scan budgets, and app-server request parameters. GitOrigin-RevId: a8950f03d8b56323f268fd3355c6a38a16cb9833