mirror of
https://github.com/openai/codex.git
synced 2026-09-20 12:47:38 +00:00
## What changed Replace direct access to the shared rollout budget with controller methods for recording token usage, retrieving pending reminders, and marking reminders as delivered. Move the `SessionBudgetExceeded` check into the controller and update session and guardian callers, preserving reminder acknowledgment after insertion into conversation history. ## Testing Replace the shared-budget pointer assertion with a behavioral check: recording 25 output tokens in a reviewer session leaves 75 tokens in the parent session's budget reminder when the initial budget is 100 tokens. GitOrigin-RevId: 003bc2b56e526787c1864c09729bbad1006e243d