mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
## Why When result metadata exceeds the output budget, message-board tools keep retrying identical reads after all limits reach one. ## What changed Stop shrinking reads once every page and character limit reaches one, returning the existing metadata-budget error if the result still does not fit. Use the largest effective limit to keep retrying while either the page size or preview length can still shrink. ## Testing Add regression assertions for all five read tools with an impossible output budget, checking the error and exact read counts. Cover unequal page and preview limits and limits that are not powers of two. GitOrigin-RevId: f00ddbcf0372c8f9318fa178259868caae55e68b