mirror of
https://github.com/openai/codex.git
synced 2026-09-05 15:18:41 +00:00
## Why `skills.read` paginated resources against a fixed response limit, so a page could exceed a smaller tool-call response budget. ## What changed - Size each serialized `skills.read` page to the current call's response budget, accounting for JSON escaping and UTF-8 boundaries. - Cache one bounded executor-resource snapshot per thread so cursor continuations return consistent contents without rereading the file. Replace the snapshot when another resource is read, and reject stale cursors after a reread. - Tie cached executor snapshots to the selected environment and sandbox context without keeping the environment alive. ## Testing - Cover budget-constrained reads, escaped and multibyte contents, multi-page reconstruction, changed resources, snapshot eviction, and expired turn-scoped access. GitOrigin-RevId: e515935b82771b3f29b3fb91ea7a7a72e19a65ee