mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Require confirmation for safety-buffered retries (#42380)
## What changed - Show a confirmation before stopping a safety-buffered attempt and retrying with the server-selected faster model. - Explain that the retry starts a new thread, preserves actions already taken, and may use a less capable model; allow the user to keep waiting instead. - Dismiss the buffering or confirmation view when the response starts or the turn is no longer eligible for retry. - Refresh the buffering copy and wrap confirmation text correctly in narrow terminals. ## Testing - Cover retry confirmation, cancellation, turn completion, response startup, stale updates, and narrow-terminal rendering. GitOrigin-RevId: 013bc47174811dd104b421774577c2808c732bfa
This commit is contained in:
1 parent
69cebb5d15
commit
0588fc941c
12 files changed
+287
-34
No files matched your search
@@ -714,6 +714,13 @@ goals = true
|
||||
.handle_key_event(KeyEvent::new(KeyCode::Enter, KeyModifiers::NONE));
|
||||
let second_retry = loop {
|
||||
match app_event_rx.try_recv() {
|
||||
Ok(event @ AppEvent::ConfirmSafetyBufferedRetry { .. }) => {
|
||||
Box::pin(app.handle_event(&mut tui, &mut app_server, event)).await?;
|
||||
app.chat_widget
|
||||
.handle_key_event(KeyEvent::new(KeyCode::Down, KeyModifiers::NONE));
|
||||
app.chat_widget
|
||||
.handle_key_event(KeyEvent::new(KeyCode::Enter, KeyModifiers::NONE));
|
||||
}
|
||||
Ok(AppEvent::RetrySafetyBufferedTurn {
|
||||
thread_id,
|
||||
turn_id,
|
||||
|
||||
Reference in new issue
Block a user