mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
Clarify waiting behavior in safety buffering prompts (#32286)
## What changed - Rename `Keep waiting` to `Dismiss and keep waiting`. - Explain that no action is required, waiting continues, and the menu closes when the response is ready. - Replace the generic confirmation hint with the new explanatory footer. ## Testing - Update snapshots for safety-buffering prompts with and without the retry option. GitOrigin-RevId: 2d336c59066e2689f291c5098ecc300921f39977
This commit is contained in:
@@ -9,6 +9,7 @@ const SAFETY_BUFFERING_LEARN_MORE_URL: &str = "https://help.openai.com/en/articl
|
||||
const SAFETY_BUFFERING_HEADER: &str =
|
||||
"Our systems are thinking a bit more about this request before responding.";
|
||||
const SAFETY_BUFFERING_MESSAGE_WITH_RETRY: &str = "Hang tight or retry with a faster model for a quicker response, though it may be less capable of handling complex requests.";
|
||||
const SAFETY_BUFFERING_FOOTER: &str = "No action is required. Codex will keep waiting, and this menu will close when the response is ready.";
|
||||
|
||||
#[derive(Debug)]
|
||||
struct ActiveSafetyBuffering {
|
||||
@@ -184,7 +185,7 @@ impl ChatWidget {
|
||||
}
|
||||
items.extend([
|
||||
SelectionItem {
|
||||
name: "Keep waiting".to_string(),
|
||||
name: "Dismiss and keep waiting".to_string(),
|
||||
dismiss_on_select: true,
|
||||
..Default::default()
|
||||
},
|
||||
@@ -201,6 +202,8 @@ impl ChatWidget {
|
||||
self.bottom_pane.show_selection_view(SelectionViewParams {
|
||||
view_id: Some(SAFETY_BUFFERING_PROMPT_VIEW_ID),
|
||||
header: Box::new(header),
|
||||
footer_note: Some(Line::from(SAFETY_BUFFERING_FOOTER).dim()),
|
||||
footer_hint: Some(Line::default()),
|
||||
items,
|
||||
..Default::default()
|
||||
});
|
||||
|
||||
+3
-2
@@ -7,7 +7,8 @@ expression: popup
|
||||
may be less capable of handling complex requests.
|
||||
|
||||
› 1. Retry with a faster model
|
||||
2. Keep waiting
|
||||
2. Dismiss and keep waiting
|
||||
3. Learn more
|
||||
|
||||
Press enter to confirm or esc to go back
|
||||
No action is required. Codex will keep waiting, and this menu will close when
|
||||
the response is ready.
|
||||
|
||||
+3
-2
@@ -4,7 +4,8 @@ expression: popup
|
||||
---
|
||||
Our systems are thinking a bit more about this request before responding.
|
||||
|
||||
› 1. Keep waiting
|
||||
› 1. Dismiss and keep waiting
|
||||
2. Learn more
|
||||
|
||||
Press enter to confirm or esc to go back
|
||||
No action is required. Codex will keep waiting, and this menu will close when
|
||||
the response is ready.
|
||||
|
||||
Reference in New Issue
Block a user