GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(catalog): correct the native GPT-5.6 context window to 272k by waw4303 · Pull Request #1648 · lidge-jun/opencodex

Conversation

@waw4303

@waw4303 waw4303 commented Aug 14, 2026 •
edited by Wibias
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

PR description: fix(catalog): correct the native GPT-5.6 context window to 272k

Summary

Align the native GPT-5.6 catalog rows with the real Codex OAuth contract. The upstream models.json advertises 372_000 for the GPT-5.6 family, but the effective context for Codex OAuth sessions is the 272_000 standard already used for gpt-5.5. This changes NATIVE_GPT56_CONTEXT_WINDOW from 372_000 to 272_000, so gpt-5.6-sol/terra/luna and account-scoped Daybreak Blue (which inherits Sol capabilities) stop overstating native capacity; the derived auto_compact_token_limit follows automatically (floor(window * 0.9) → 244_800).

  • src/codex/catalog/metadata.ts — constant corrected.
  • tests/codex-catalog.test.ts, tests/codex-catalog-sync-hardening.test.ts — assertions that flow through nativeOpenAiContextWindow/applyNativeOpenAiContextOverride updated to 272_000/244_800. Upstream-snapshot assertions (the raw pinned models.json values) are intentionally untouched.

Verification

  • bun test tests/codex-catalog.test.ts — 176 pass / 0 fail.
  • bun test --timeout 60000 tests/codex-catalog-sync-hardening.test.ts — 25 pass / 0 fail (the three spawn-heavy cases need the CI-style 60s timeout, not Bun's 5s default).
  • bun run typecheck — pass.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

Review readiness checklist

This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:

  • All CI tests are green on my local testing.

  • I pushed my PR to the latest dev commit.

  • I resolved all correct Codex and CodeRabbit findings.

  • My PR is ready for review.

Summary by CodeRabbit

  • Bug Fixes
    • Adjusted the supported context window for native GPT-5.6 models to 272,000 tokens.
    • Updated automatic compaction limits and model catalog behavior to align with the revised context capacity.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@waw4303
fix(catalog): correct the native GPT-5.6 context window to 272k
ba299c7
The upstream models.json advertises 372k for the GPT-5.6 family, but the
effective Codex OAuth contract is 272k. Align NATIVE_GPT56_CONTEXT_WINDOW
(and Daybreak Blue, which inherits Sol capabilities) with the 272k standard
already used for gpt-5.5, so catalog rows and auto-compact limits stop
overstating native capacity.
@waw4303
waw4303 requested review from Ingwannu, Wibias and lidge-jun as code owners August 14, 2026 01:07
@github-actions github-actions Bot added the bug Something isn't working label Aug 14, 2026
@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Aug 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

No new commits to review since the last review.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 8bd65f4e-ec79-40db-aff0-5f44aa9d50d4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 220fdafd-5119-4e69-9063-a735f334f2a0

📥 Commits

Reviewing files that changed from the base of the PR and between 8b1c620 and ba299c7.

📒 Files selected for processing (3)
  • src/codex/catalog/metadata.ts
  • tests/codex-catalog-sync-hardening.test.ts
  • tests/codex-catalog.test.ts

📝 Walkthrough

Walkthrough

The native GPT-5.6 context window changes from 372,000 to 272,000 tokens. Catalog synchronization and catalog tests update related context, maximum-context, and auto-compaction expectations.

Changes

GPT-5.6 context window

Layer / File(s) Summary
Update native GPT-5.6 baseline
src/codex/catalog/metadata.ts
NATIVE_GPT56_CONTEXT_WINDOW now defines a 272,000-token context window.
Align catalog expectations
tests/codex-catalog.test.ts, tests/codex-catalog-sync-hardening.test.ts
Catalog tests now expect 272,000-token context limits and 244,800-token auto-compaction limits across native, alias, and Daybreak cases.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Mergeability Score: ⚪ Minimal · up to ba299

This change corrects the native GPT-5.6 context limit and its derived compaction limit, with targeted tests and typechecking passing; no actionable merge-blocking risk remains.

Possibly related PRs

  • lidge-jun/opencodex#800: Changes the same GPT-5.6 catalog metadata and test expectations.
  • lidge-jun/opencodex#1435: Modifies native GPT-5.6 context-window handling and provider-cap logic.

Suggested reviewers: wibias, ingwannu, lidge-jun

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the primary change: correcting the native GPT-5.6 context window to 272k.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Aug 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

⏳ DRAFT

  • review readiness checklist open (2/4 boxes ticked).

What to do

  • Tick all four boxes in the PR description once you're done (currently 2/4).

Review readiness checklist

  • ⬜ All CI tests are green on my local testing.
  • ✅ I pushed my PR to the latest dev commit.
  • ✅ I resolved all correct Codex and CodeRabbit findings.
  • ⬜ My PR is ready for review.

2/4 boxes ticked.

This PR stays in draft until every box above is ticked.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions
github-actions Bot marked this pull request as draft August 14, 2026 01:07
@github-actions github-actions Bot added the review-ready label Aug 14, 2026
@github-actions
github-actions Bot marked this pull request as ready for review August 14, 2026 01:14
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

@github-actions[bot] Acknowledged. PR #1648 is marked ready for review. I am replying to the latest comment only because the earlier comment chain is unavailable.


🧠 Learnings used
Learnt from: Wibias
Repo: lidge-jun/opencodex PR: 986
File: .github/workflows/enforce-pr-target.yml:631-636
Timestamp: 2026-08-04T06:41:30.089Z
Learning: For the PR readiness gate in `.github/workflows/enforce-pr-target.yml`, the required scope is to bind contributor checklist completion and maintainer notification to the exact PR head SHA, then reset them after a new head commit. Maintainer approval staleness is separate from this gate and should be enforced by GitHub branch protection, such as `dismiss-stale-reviews` or `require_last_push_approval`, when configured for `dev`.

You are interacting with an AI system.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Wibias
Wibias marked this pull request as draft August 14, 2026 03:51
@Wibias Wibias removed the review-ready label Aug 14, 2026
@coderabbitai

coderabbitai Bot commented Aug 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

@github-actions[bot] The readiness gate is complete for head SHA ba299c79dc1f4269dbf6177b5aa0c707c9bc28c2. I will start the independent PR review.


🧠 Learnings used
Learnt from: Wibias
Repo: lidge-jun/opencodex PR: 986
File: .github/workflows/enforce-pr-target.yml:631-636
Timestamp: 2026-08-04T06:41:30.089Z
Learning: For the PR readiness gate in `.github/workflows/enforce-pr-target.yml`, the required scope is to bind contributor checklist completion and maintainer notification to the exact PR head SHA, then reset them after a new head commit. Maintainer approval staleness is separate from this gate and should be enforced by GitHub branch protection, such as `dismiss-stale-reviews` or `require_last_push_approval`, when configured for `dev`.
⚠️ Action not completed

Already reviewed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lidge-jun

lidge-jun commented Aug 14, 2026

Copy link
Copy Markdown
Owner

this is I intended

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lidge-jun lidge-jun closed this Aug 14, 2026
@coderabbitai coderabbitai Bot mentioned this pull request Aug 18, 2026
fix(catalog): default native GPT-5.6 max_context_window to the upstream max #1988
Closed
4 tasks done
@waw4303
waw4303 deleted the pr/context-window branch August 20, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lidge-jun lidge-jun Awaiting requested review from lidge-jun lidge-jun is a code owner
@Ingwannu Ingwannu Awaiting requested review from Ingwannu Ingwannu is a code owner
@Wibias Wibias Awaiting requested review from Wibias

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@waw4303 @lidge-jun @Wibias
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.