This commit is contained in:
Ahmed Ibrahim
2025-11-18 14:34:14 -08:00
parent 1fafbb0fb8
commit 0afeea3b5e
6 changed files with 120 additions and 19 deletions
@@ -4,9 +4,9 @@ expression: popup
---
Select Reasoning Level for gpt-5.1-codex
1. Low Fastest responses with limited reasoning
2. Medium (default) Dynamically adjusts reasoning based on the task
› 3. High (current) Maximizes reasoning depth for complex or ambiguous
1. low Fastest responses with limited reasoning
2. medium (default) Dynamically adjusts reasoning based on the task
› 3. high (current) Maximizes reasoning depth for complex or ambiguous
problems
⚠ High reasoning effort can quickly consume Plus plan
rate limits.
@@ -1,15 +1,13 @@
---
source: tui/src/chatwidget/tests.rs
assertion_line: 1440
expression: popup
---
Select Model
Quickly pick Codex Auto or open the legacy list for more options.
Select Model and Effort
Access legacy models by running codex -m <model_name> or in your config.toml
› 1. Fast Works faster
2. Balanced (default) Balances speed with intelligence
3. Thorough Works longer for harder tasks
4. All models Choose and configure what model and reasoning level
to use
› 1. gpt-5.1-codex Optimized for codex.
2. gpt-5.1-codex-mini Optimized for codex. Cheaper, faster, but less
capable.
3. gpt-5.1 Broad world knowledge with strong general reasoning.
Press enter to apply selection, or esc to dismiss.
Press enter to select reasoning effort, or esc to dismiss.
+15
View File
@@ -1440,6 +1440,21 @@ fn model_selection_popup_snapshot() {
assert_snapshot!("model_selection_popup", popup);
}
#[test]
fn model_selection_popup_chatgpt_auth_snapshot() {
let (mut chat, _rx, _op_rx) = make_chatwidget_manual();
chat.auth_manager =
AuthManager::from_auth_for_testing(CodexAuth::create_dummy_chatgpt_auth_for_testing());
chat.config.model = "gpt-5.1-codex".to_string();
chat.open_model_popup();
let popup = render_bottom_popup(&chat, 80);
insta::with_settings!({ snapshot_suffix => "chatgpt_auth" }, {
assert_snapshot!("model_selection_popup", popup);
});
}
#[test]
fn featured_model_popup_hides_default_label_when_option_is_current() {
let (mut chat, _rx, _op_rx) = make_chatwidget_manual();