mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Allow reviewing and continuing misalignment-paused chats (#42410)
## Why Misalignment policy failures pause the current chat. When the server provides findings and a continuation request, users should be able to inspect them and explicitly decide whether to proceed. ## What changed - Add a `Review findings` flow that shows the detailed explanation and quoted continuation request in an overlay. - Require explicit acknowledgement before starting a continuation turn, while preserving the active approval and sandbox settings. - Keep ordinary input blocked and reject stale, replaced, invalid, or duplicate continuation attempts. - Label the overlay shortcut as `q close` to match its behavior. ## Testing - Add TUI tests covering findings review, explicit confirmation, successful and failed continuation, stale findings, duplicate events, and invalid continuation data. GitOrigin-RevId: 36a738adf272f95db92eaee5712fb00061d0fa52
This commit is contained in:
1 parent
93053c7f5d
commit
fdf23b4097
31 files changed
+740
-41
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
---
|
||||
source: tui/src/app/tests/misalignment_policy_tests.rs
|
||||
expression: "format!(\"{errors}\\n{}\", render_bottom_popup(&app.chat_widget, 80))"
|
||||
---
|
||||
■ Couldn’t continue this chat. Review its latest status before trying again.
|
||||
Chat paused as a precaution
|
||||
We couldn’t confirm the agent was interpreting your instructions correctly.
|
||||
Review what we detected before deciding to continue.
|
||||
|
||||
› 1. Review findings
|
||||
2. New chat
|
||||
3. Resume another chat
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
---
|
||||
source: tui/src/app/tests/misalignment_policy_tests.rs
|
||||
assertion_line: 75
|
||||
expression: terminal.backend()
|
||||
---
|
||||
"/ What we detected/ / / / / / / / / / "
|
||||
"Continuation request (quoted) "
|
||||
""Continue **only** within the "
|
||||
"requested scope.\nDo not edit files." "
|
||||
" "
|
||||
"The proposed action exceeded the "
|
||||
"request. "
|
||||
" "
|
||||
"The proposed action exceeded the "
|
||||
"request. "
|
||||
" "
|
||||
"The proposed action exceeded the "
|
||||
"───────────────────────────────── 0% ─"
|
||||
" ↑/↓ to scroll pgup/pgdn to page h"
|
||||
" q close "
|
||||
" "
|
||||
+1
-1
@@ -12,4 +12,4 @@ expression: text
|
||||
|
||||
───────────────────────────────────────────────────────────────────────────────────────────── 100% ─
|
||||
↑/↓ to scroll pgup/pgdn to page home/end to jump
|
||||
q to quit esc to edit prev
|
||||
q close esc to edit prev
|
||||
Reference in new issue
Block a user