mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Let the app server resolve implicit model settings for CLI forks (#43355)
## Why Client defaults can override the fork destination's model and reasoning effort or trigger a migration prompt for a stale model. ## What changed - Omit implicit model and reasoning effort overrides during CLI fork startup, while preserving explicit launch settings. - Skip the model migration prompt and service tier inference when the fork's model is left for the server to resolve. - Initialize unspecified reasoning effort from the forked session's response. ## Testing Add a startup regression test that changes server defaults after bootstrap and verifies that `thread/fork` proceeds without a migration prompt, model or reasoning effort overrides, an inferred service tier, or a `config/read` request. GitOrigin-RevId: 858f0fe3c72b90bdcaf31b400144d37af5bc6ed7
This commit is contained in:
1 parent
555b82afa9
commit
0e9589ffae
3 files changed
+151
-15
No files matched your search
@@ -955,7 +955,12 @@ impl AppServerSession {
|
||||
.is_some_and(|thread| thread.history_mode == ThreadHistoryMode::Paginated)
|
||||
|| presentation == ForkPresentation::SideConversation);
|
||||
let request_id = self.next_request_id();
|
||||
let session_config = self.session_config_with_effective_service_tier(&config);
|
||||
let session_config = if config.model.is_none() {
|
||||
// Avoid inferring a tier from the stale client default model.
|
||||
config.clone()
|
||||
} else {
|
||||
self.session_config_with_effective_service_tier(&config)
|
||||
};
|
||||
let mut params = ThreadForkParams {
|
||||
last_turn_id,
|
||||
before_turn_id,
|
||||
|
||||
Reference in new issue
Block a user