mirror of
https://github.com/openai/codex.git
synced 2026-09-07 15:40:00 +00:00
Restore base hooks browser guidance
This commit is contained in:
@@ -247,7 +247,11 @@ impl HooksBrowserView {
|
||||
) -> Vec<Line<'static>> {
|
||||
let mut lines = vec![format!("{} hooks", event_label(event_name)).bold().into()];
|
||||
match review_needed_count {
|
||||
0 => {}
|
||||
0 => lines.push(
|
||||
"Turn hooks on or off. Your changes are saved automatically."
|
||||
.dim()
|
||||
.into(),
|
||||
),
|
||||
1 => lines.push("1 hook needs review before it can run.".dim().into()),
|
||||
count => lines.push(
|
||||
format!("{count} hooks need review before they can run.")
|
||||
|
||||
@@ -4,6 +4,7 @@ expression: "render_lines(&view, 44)"
|
||||
---
|
||||
|
||||
PreToolUse hooks
|
||||
Turn hooks on or off. Your changes are s
|
||||
|
||||
[x] Hook 1
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ expression: "render_lines(&view, 112)"
|
||||
---
|
||||
|
||||
PermissionRequest hooks
|
||||
Turn hooks on or off. Your changes are saved automatically.
|
||||
|
||||
No hooks installed for this event.
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ expression: "render_lines(&view, 112)"
|
||||
---
|
||||
|
||||
PreToolUse hooks
|
||||
Turn hooks on or off. Your changes are saved automatically.
|
||||
|
||||
[x] Hook 1
|
||||
[ ] Hook 2
|
||||
|
||||
@@ -4,6 +4,7 @@ expression: "render_lines(&view, 112)"
|
||||
---
|
||||
|
||||
PermissionRequest hooks
|
||||
Turn hooks on or off. Your changes are saved automatically.
|
||||
|
||||
[x] Hook 1
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ expression: "render_lines(&view, 112)"
|
||||
---
|
||||
|
||||
PreToolUse hooks
|
||||
Turn hooks on or off. Your changes are saved automatically.
|
||||
|
||||
[x] Hook 2
|
||||
[x] Hook 3
|
||||
|
||||
@@ -4,6 +4,7 @@ expression: "render_lines(&view, 112)"
|
||||
---
|
||||
|
||||
PreToolUse hooks
|
||||
Turn hooks on or off. Your changes are saved automatically.
|
||||
|
||||
[x] Hook 1
|
||||
[x] Hook 2
|
||||
|
||||
Reference in New Issue
Block a user