diff --git a/packages/cli/src/ui/components/HooksDialog.tsx b/packages/cli/src/ui/components/HooksDialog.tsx index 0421f7d9eb..6a60a10af6 100644 --- a/packages/cli/src/ui/components/HooksDialog.tsx +++ b/packages/cli/src/ui/components/HooksDialog.tsx @@ -244,6 +244,11 @@ export const HooksDialog: React.FC = ({ )} + + + (Press Esc to close) + + ); }; diff --git a/packages/cli/src/ui/components/__snapshots__/HooksDialog.test.tsx.snap b/packages/cli/src/ui/components/__snapshots__/HooksDialog.test.tsx.snap index 1a2271cc45..cd16040059 100644 --- a/packages/cli/src/ui/components/__snapshots__/HooksDialog.test.tsx.snap +++ b/packages/cli/src/ui/components/__snapshots__/HooksDialog.test.tsx.snap @@ -6,6 +6,8 @@ exports[`HooksDialog > snapshots > renders empty hooks dialog 1`] = ` │ │ │ No hooks configured. │ │ │ +│ (Press Esc to close) │ +│ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ " `; @@ -31,6 +33,8 @@ exports[`HooksDialog > snapshots > renders hook using command as name when name │ Tip: Use /hooks enable or /hooks disable to toggle individual hooks. Use │ │ /hooks enable-all or /hooks disable-all to toggle all hooks at once. │ │ │ +│ (Press Esc to close) │ +│ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ " `; @@ -57,6 +61,8 @@ exports[`HooksDialog > snapshots > renders hook with all metadata (matcher, sequ │ Tip: Use /hooks enable or /hooks disable to toggle individual hooks. Use │ │ /hooks enable-all or /hooks disable-all to toggle all hooks at once. │ │ │ +│ (Press Esc to close) │ +│ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ " `; @@ -93,6 +99,8 @@ exports[`HooksDialog > snapshots > renders hooks grouped by event name with enab │ Tip: Use /hooks enable or /hooks disable to toggle individual hooks. Use │ │ /hooks enable-all or /hooks disable-all to toggle all hooks at once. │ │ │ +│ (Press Esc to close) │ +│ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ " `; @@ -119,6 +127,8 @@ exports[`HooksDialog > snapshots > renders single hook with security warning, so │ Tip: Use /hooks enable or /hooks disable to toggle individual hooks. Use │ │ /hooks enable-all or /hooks disable-all to toggle all hooks at once. │ │ │ +│ (Press Esc to close) │ +│ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ " `;