Skip to content

Make token budget context identity configurable - #36970

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f6e6d2c49e09e70c0352e803bb65784ef77e5bee
Aug 4, 2026
Merged

Make token budget context identity configurable#36970
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f6e6d2c49e09e70c0352e803bb65784ef77e5bee

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 4, 2026

Copy link
Copy Markdown

Make token budget context identity configurable

What changed

  • Add a features.token_budget.mode setting with thread and name values.
  • Default context-window metadata to the thread ID while allowing configurations to retain the agent name.
  • Preserve the selected identity mode when applying model token-budget defaults and replaying locked configuration.

Testing

  • Cover configuration parsing and both identity formats in token-budget context messages.
## What changed

- Add a `features.token_budget.mode` setting with `thread` and `name` values.
- Default context-window metadata to the thread ID while allowing configurations to retain the agent name.
- Preserve the selected identity mode when applying model token-budget defaults and replaying locked configuration.

## Testing

- Cover configuration parsing and both identity formats in token-budget context messages.

GitOrigin-RevId: f6e6d2c49e09e70c0352e803bb65784ef77e5bee
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/f6e6d2c49e09e70c0352e803bb65784ef77e5bee branch from 9de894e to c607da9 Compare August 4, 2026 20:49
@copyberry
copyberry Bot merged commit c607da9 into main Aug 4, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/f6e6d2c49e09e70c0352e803bb65784ef77e5bee branch August 4, 2026 20:51
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants