Repository navigation
Gate experimental context by model capability at session startup - #43147
Merged
copyberry[bot] merged 1 commit intoSep 6, 2026
Conversation
) ## Why Experimental context activation previously checked the provider and account eligibility without checking model support. Child sessions also inherited token-budget activation from their parent, even when starting fresh with a different model. ## What changed - Add `ModelInfo.supports_experimental_context`, defaulting to `false`, and enable it for the bundled `gpt-6-astra` model. Require this capability when activating experimental context. - Snapshot configured token-budget preferences before startup activation. Restore them for fresh child sessions before applying their starting model's defaults, while history forks retain their parent's activation. - Pass unresolved token-budget preferences to child sessions so they can use their own model's prompts. ## Testing Extend coverage for unsupported models, model-switch guidance under explicit and experimental activation, and child configuration from both active and inactive parents. Verify that omitted capability metadata defaults to `false`. GitOrigin-RevId: 02df9e171682267232fa923d5ea3f7af36527808
Contributor
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/02df9e171682267232fa923d5ea3f7af36527808
branch
from
September 6, 2026 02:29
4cea218 to
6af3454
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/02df9e171682267232fa923d5ea3f7af36527808
branch
September 6, 2026 02:30
skyline69
temporarily deployed
to
issue-triage
September 6, 2026 02:53 — with
GitHub Actions
Inactive
skyline69
temporarily deployed
to
issue-triage
September 6, 2026 02:53 — with
GitHub Actions
Inactive
skyline69
temporarily deployed
to
issue-triage
September 6, 2026 02:53 — with
GitHub Actions
Inactive
skyline69
temporarily deployed
to
issue-triage
September 6, 2026 02:54 — with
GitHub Actions
Inactive
mubashir1osmani
temporarily deployed
to
issue-triage
September 6, 2026 02:55 — with
GitHub Actions
Inactive
mubashir1osmani
temporarily deployed
to
issue-triage
September 6, 2026 02:55 — with
GitHub Actions
Inactive
mubashir1osmani
temporarily deployed
to
issue-triage
September 6, 2026 02:55 — with
GitHub Actions
Inactive
mubashir1osmani
temporarily deployed
to
issue-triage
September 6, 2026 02:56 — with
GitHub Actions
Inactive
wangwllu
temporarily deployed
to
issue-triage
September 6, 2026 02:58 — with
GitHub Actions
Inactive
wangwllu
temporarily deployed
to
issue-triage
September 6, 2026 02:58 — with
GitHub Actions
Inactive
wangwllu
temporarily deployed
to
issue-triage
September 6, 2026 02:58 — with
GitHub Actions
Inactive
wangwllu
temporarily deployed
to
issue-triage
September 6, 2026 02:59 — with
GitHub Actions
Inactive
clockworksquirrel
temporarily deployed
to
issue-triage
September 6, 2026 03:03 — with
GitHub Actions
Inactive
clockworksquirrel
temporarily deployed
to
issue-triage
September 6, 2026 03:03 — with
GitHub Actions
Inactive
clockworksquirrel
temporarily deployed
to
issue-triage
September 6, 2026 03:03 — with
GitHub Actions
Inactive
Carleo10032
temporarily deployed
to
issue-triage
September 6, 2026 03:09 — with
GitHub Actions
Inactive
Carleo10032
temporarily deployed
to
issue-triage
September 6, 2026 03:09 — with
GitHub Actions
Inactive
Carleo10032
temporarily deployed
to
issue-triage
September 6, 2026 03:09 — with
GitHub Actions
Inactive
Carleo10032
temporarily deployed
to
issue-triage
September 6, 2026 03:10 — with
GitHub Actions
Inactive
tommyent
temporarily deployed
to
issue-triage
September 6, 2026 03:14 — with
GitHub Actions
Inactive
tommyent
temporarily deployed
to
issue-triage
September 6, 2026 03:14 — with
GitHub Actions
Inactive
newideas99
temporarily deployed
to
issue-triage
September 6, 2026 03:56 — with
GitHub Actions
Inactive
newideas99
temporarily deployed
to
issue-triage
September 6, 2026 03:56 — with
GitHub Actions
Inactive
newideas99
temporarily deployed
to
issue-triage
September 6, 2026 03:56 — with
GitHub Actions
Inactive
newideas99
temporarily deployed
to
issue-triage
September 6, 2026 03:58 — with
GitHub Actions
Inactive
fxhuanghfx
temporarily deployed
to
issue-triage
September 6, 2026 04:11 — with
GitHub Actions
Inactive
fxhuanghfx
temporarily deployed
to
issue-triage
September 6, 2026 04:11 — with
GitHub Actions
Inactive
fxhuanghfx
temporarily deployed
to
issue-triage
September 6, 2026 04:11 — with
GitHub Actions
Inactive
fxhuanghfx
temporarily deployed
to
issue-triage
September 6, 2026 04:12 — with
GitHub Actions
Inactive
conner-olsen
temporarily deployed
to
issue-triage
September 6, 2026 04:23 — with
GitHub Actions
Inactive
conner-olsen
temporarily deployed
to
issue-triage
September 6, 2026 04:23 — with
GitHub Actions
Inactive
conner-olsen
temporarily deployed
to
issue-triage
September 6, 2026 04:23 — with
GitHub Actions
Inactive
conner-olsen
temporarily deployed
to
issue-triage
September 6, 2026 04:24 — with
GitHub Actions
Inactive
shin4141
temporarily deployed
to
issue-triage
September 6, 2026 05:13 — with
GitHub Actions
Inactive
shin4141
temporarily deployed
to
issue-triage
September 6, 2026 05:13 — with
GitHub Actions
Inactive
shin4141
temporarily deployed
to
issue-triage
September 6, 2026 05:13 — with
GitHub Actions
Inactive
shin4141
temporarily deployed
to
issue-triage
September 6, 2026 05:14 — with
GitHub Actions
Inactive
xiurui-pan
temporarily deployed
to
issue-triage
September 6, 2026 05:25 — with
GitHub Actions
Inactive
xiurui-pan
temporarily deployed
to
issue-triage
September 6, 2026 05:25 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Gate experimental context by model capability at session startup
Why
Experimental context activation previously checked the provider and account eligibility without checking model support. Child sessions also inherited token-budget activation from their parent, even when starting fresh with a different model.
What changed
ModelInfo.supports_experimental_context, defaulting tofalse, and enable it for the bundledgpt-6-astramodel. Require this capability when activating experimental context.Testing
Extend coverage for unsupported models, model-switch guidance under explicit and experimental activation, and child configuration from both active and inactive parents. Verify that omitted capability metadata defaults to
false.