mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Preserve selected profile settings over managed new-thread defaults (#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
This commit is contained in:
1 parent
e53c444964
commit
aff3e0db94
7 files changed
+140
-18
No files matched your search
@@ -178,6 +178,8 @@ async fn fresh_startup_uses_server_defaults_with_explicit_and_managed_precedence
|
||||
("cli_effort", true, "server-model", "low"),
|
||||
("profile_model", false, "profile-model", "high"),
|
||||
("profile_effort", false, "server-model", "low"),
|
||||
("profile_model", true, "profile-model", "high"),
|
||||
("profile_effort", true, "server-model", "low"),
|
||||
("managed", true, "managed-model", "medium"),
|
||||
] {
|
||||
let client_home = tempdir()?;
|
||||
|
||||
Reference in new issue
Block a user