mirror of
https://github.com/openai/codex.git
synced 2026-11-05 16:29:31 +00:00
Show completed hook warnings in TUI headers (#34416)
## What changed - Render the first line of a completed hook warning in the hook header using `says:`, with any remaining lines indented below it. - Keep the existing hook header when no warning is present and avoid rendering warning entries a second time in the output body. - Update hook event snapshots and the multiline warning test for the new layout. GitOrigin-RevId: 291b556daf3b6fb64a99b090a6df1a222a18a736
This commit is contained in:
1 parent
687f05cb94
commit
cf821e8ec8
5 files changed
+32
-15
No files matched your search
+1
-2
@@ -2,6 +2,5 @@
|
||||
source: tui/src/chatwidget/tests/helpers.rs
|
||||
expression: combined
|
||||
---
|
||||
• PostToolUse hook (completed)
|
||||
warning: Heads up from the hook
|
||||
• PostToolUse (completed) says: Heads up from the hook
|
||||
hook context: Remember the startup checklist.
|
||||
+1
-2
@@ -2,6 +2,5 @@
|
||||
source: tui/src/chatwidget/tests/helpers.rs
|
||||
expression: combined
|
||||
---
|
||||
• PreToolUse hook (completed)
|
||||
warning: Heads up from the hook
|
||||
• PreToolUse (completed) says: Heads up from the hook
|
||||
hook context: Remember the startup checklist.
|
||||
+1
-2
@@ -2,6 +2,5 @@
|
||||
source: tui/src/chatwidget/tests/helpers.rs
|
||||
expression: combined
|
||||
---
|
||||
• SessionStart hook (completed)
|
||||
warning: Heads up from the hook
|
||||
• SessionStart (completed) says: Heads up from the hook
|
||||
hook context: Remember the startup checklist.
|
||||
+1
-2
@@ -2,6 +2,5 @@
|
||||
source: tui/src/chatwidget/tests/status_and_layout.rs
|
||||
expression: combined
|
||||
---
|
||||
• UserPromptSubmit hook (stopped)
|
||||
warning: go-workflow must start from PlanMode
|
||||
• UserPromptSubmit (stopped) says: go-workflow must start from PlanMode
|
||||
stop: prompt blocked
|
||||
Reference in new issue
Block a user