feat: codex tool tips (#7440)

<img width="551" height="316" alt="Screenshot 2025-12-01 at 12 22 26"
src="https://github.com/user-attachments/assets/6ca3deff-8ef8-4f74-a8e1-e5ea13fd6740"
/>
This commit is contained in:
jif-oai
2025-12-03 16:29:13 +00:00
committed by GitHub
parent 51307eaf07
commit 45f3250eec
10 changed files with 141 additions and 26 deletions
+5 -2
View File
@@ -256,6 +256,7 @@ pub(crate) struct ChatWidgetInit {
pub(crate) enhanced_keys_supported: bool,
pub(crate) auth_manager: Arc<AuthManager>,
pub(crate) feedback: codex_feedback::CodexFeedback,
pub(crate) is_first_run: bool,
}
#[derive(Default)]
@@ -1230,6 +1231,7 @@ impl ChatWidget {
enhanced_keys_supported,
auth_manager,
feedback,
is_first_run,
} = common;
let mut rng = rand::rng();
let placeholder = EXAMPLE_PROMPTS[rng.random_range(0..EXAMPLE_PROMPTS.len())].to_string();
@@ -1274,7 +1276,7 @@ impl ChatWidget {
retry_status_header: None,
conversation_id: None,
queued_user_messages: VecDeque::new(),
show_welcome_banner: true,
show_welcome_banner: is_first_run,
suppress_session_configured_redraw: false,
pending_notification: None,
is_review_mode: false,
@@ -1305,6 +1307,7 @@ impl ChatWidget {
enhanced_keys_supported,
auth_manager,
feedback,
..
} = common;
let mut rng = rand::rng();
let placeholder = EXAMPLE_PROMPTS[rng.random_range(0..EXAMPLE_PROMPTS.len())].to_string();
@@ -1351,7 +1354,7 @@ impl ChatWidget {
retry_status_header: None,
conversation_id: None,
queued_user_messages: VecDeque::new(),
show_welcome_banner: true,
show_welcome_banner: false,
suppress_session_configured_redraw: true,
pending_notification: None,
is_review_mode: false,