Skip to content

Preserve selected profile settings over managed new-thread defaults - #44693

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/98f036b8b7059bab8598283600dbc6967c71d3e3
Sep 11, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/98f036b8b7059bab8598283600dbc6967c71d3e3

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Preserve selected profile settings over managed new-thread defaults

Why

Managed new-thread defaults could overwrite model, reasoning effort, and service tier settings from an explicitly selected profile.

What changed

  • Treat effective profile settings as explicit launch choices when applying managed defaults. A profile setting for either model or model_reasoning_effort opts out of both managed values; service_tier remains independent.
  • Count a profile setting only when it supplies the highest-precedence active value, so settings shadowed by project configuration do not block defaults.

Testing

Add regression coverage for profile precedence at startup, session replacement, and background task creation, plus custom-provider profiles, service tiers, unrelated profile settings, and project settings that shadow profiles.

…44693)

## Why

Managed new-thread defaults could overwrite model, reasoning effort, and service tier settings from an explicitly selected profile.

## What changed

- Treat effective profile settings as explicit launch choices when applying managed defaults. A profile setting for either `model` or `model_reasoning_effort` opts out of both managed values; `service_tier` remains independent.
- Count a profile setting only when it supplies the highest-precedence active value, so settings shadowed by project configuration do not block defaults.

## Testing

Add regression coverage for profile precedence at startup, session replacement, and background task creation, plus custom-provider profiles, service tiers, unrelated profile settings, and project settings that shadow profiles.

GitOrigin-RevId: 98f036b8b7059bab8598283600dbc6967c71d3e3
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/98f036b8b7059bab8598283600dbc6967c71d3e3 branch from 4deefe4 to aff3e0d Compare September 11, 2026 00:59
@copyberry
copyberry Bot merged commit aff3e0d into main Sep 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


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
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/98f036b8b7059bab8598283600dbc6967c71d3e3 branch September 11, 2026 00:59
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant