mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
Warn when a CLI model is absent from the ChatGPT model list (#60270)
## What changed Show a startup warning when the active model matches the CLI model override but is missing from the ChatGPT model list, for ChatGPT accounts using the OpenAI provider. Suggest checking the spelling or choosing another model with `/model`, while preserving the selected model and submitting queued startup input. Reuse the transcript-visible warning helper for this notice and existing usage warnings. ## Testing Extend the startup test to check the warning text, preserved model selection, and queued input submission. GitOrigin-RevId: bb1e8c415346bf271e25ef4e8571c13b4bc2c8c8
This commit is contained in:
@@ -393,7 +393,7 @@ impl ChatWidget {
|
||||
|
||||
if !warnings.is_empty() {
|
||||
for warning in warnings {
|
||||
self.add_to_history(history_cell::new_usage_warning_event(warning));
|
||||
self.add_to_history(history_cell::new_visible_warning_event(warning));
|
||||
}
|
||||
self.request_redraw();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user