Skip to content

Commit 42ded2e

Browse files
jpheinclaude
andcommitted
fix(hooks): route Stop/PreCompact through palace-daemon/clients/hook.py
Promotes the staged `hooks.json.layer2-staged` to active. The previous active config invoked `${CLAUDE_PLUGIN_ROOT}/hooks/mempal-stop-hook.sh` and `mempal-precompact-hook.sh` directly; the new shape routes both through `python3 /home/jp/Projects/palace-daemon/clients/hook.py` with explicit `--hook stop --harness claude-code` / `--hook precompact --harness claude-code` arguments and a 30 s timeout. Description on the manifest names this the 'post-2026-05-11 split-brain fix' — the daemon's hook client now owns the routing decision (daemon vs local) instead of forking it across the bash scripts. Hooks weren't firing reliably under the previous shape; the staged file has been ready since 2026-05-11 06:01 and just needed the rename to take effect. Stage/backup files removed: prior `hooks.json` content is preserved in git history via this commit's parent (no separate backup file needed once the new shape is committed). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 592842f commit 42ded2e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.claude-plugin/hooks/hooks.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2-
"description": "MemPalace auto-save and pre-compact hooks",
2+
"description": "MemPalace auto-save and pre-compact hooks — routed via palace-daemon/clients/hook.py (post-2026-05-11 split-brain fix)",
33
"hooks": {
44
"Stop": [
55
{
66
"hooks": [
77
{
88
"type": "command",
9-
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/mempal-stop-hook.sh\""
9+
"command": "python3 /home/jp/Projects/palace-daemon/clients/hook.py --hook stop --harness claude-code",
10+
"timeout": 30000
1011
}
1112
]
1213
}
@@ -16,7 +17,8 @@
1617
"hooks": [
1718
{
1819
"type": "command",
19-
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/mempal-precompact-hook.sh\""
20+
"command": "python3 /home/jp/Projects/palace-daemon/clients/hook.py --hook precompact --harness claude-code",
21+
"timeout": 30000
2022
}
2123
]
2224
}

0 commit comments

Comments
 (0)