Repository navigation
Commit 3c32383
committed
feat(pinned-floor): wire UserPromptSubmit hook (Claude Code + Copilot)
Add hooks/user-prompt-submit/run.sh that delegates to `total-recall
pinned-floor --host <host>` with a fail-safe || printf '{}' fallback so
hook failure never blocks the user's prompt. Register it in hooks.json
under UserPromptSubmit with an empty matcher (fires every turn).
Copilot CLI: hooks/hooks.json is auto-discovered per the hooks reference
docs (no plugin.json key required). The run.sh already detects
COPILOT_CLI and passes --host copilot-cli; wiring is forward-compatible
pending upstream fix for additionalContext being silently ignored
(github/copilot-sdk#775 / github/copilot-cli#2142).
Cursor: hooks-cursor.json left untouched; beforeSubmitPrompt cannot
inject context so no UserPromptSubmit entry is added there.1 parent 885e9df commit 3c32383
2 files changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
14 | 25 | | |
15 | 26 | | |
16 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments