Skip to content

Support model-owned token budget defaults - #35608

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/54544fefaa14b09f5ef5bad9967a13c52b87b0fe
Jul 27, 2026
Merged

Support model-owned token budget defaults#35608
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/54544fefaa14b09f5ef5bad9967a13c52b87b0fe

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 27, 2026

Copy link
Copy Markdown

Support model-owned token budget defaults

What changed

  • Add token-budget settings to model catalog messages and apply them when the
    feature is enabled without explicit token-budget configuration.
  • Keep explicit user settings authoritative, reject invalid catalog defaults,
    and preserve resolved defaults in exported config locks.
  • Manage context-window guidance through world state so it updates once when
    the active model changes while retaining prior conversation history.

Testing

  • Cover catalog defaults, explicit overrides, disabled features, invalid
    values, config-lock replay, and model switching.
## What changed

- Add token-budget settings to model catalog messages and apply them when the
  feature is enabled without explicit token-budget configuration.
- Keep explicit user settings authoritative, reject invalid catalog defaults,
  and preserve resolved defaults in exported config locks.
- Manage context-window guidance through world state so it updates once when
  the active model changes while retaining prior conversation history.

## Testing

- Cover catalog defaults, explicit overrides, disabled features, invalid
  values, config-lock replay, and model switching.

GitOrigin-RevId: 54544fefaa14b09f5ef5bad9967a13c52b87b0fe
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/54544fefaa14b09f5ef5bad9967a13c52b87b0fe branch from 58573d4 to fbe6599 Compare July 27, 2026 12:53
@copyberry
copyberry Bot merged commit fbe6599 into main Jul 27, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/54544fefaa14b09f5ef5bad9967a13c52b87b0fe branch July 27, 2026 12:54
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 27, 2026
@yevon
yevon temporarily deployed to issue-triage July 27, 2026 13:01 — with GitHub Actions Inactive
@yevon
yevon temporarily deployed to issue-triage July 27, 2026 13:01 — with GitHub Actions Inactive
@yevon
yevon temporarily deployed to issue-triage July 27, 2026 13:01 — with GitHub Actions Inactive
@yevon
yevon temporarily deployed to issue-triage July 27, 2026 13:02 — with GitHub Actions Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet