[claude] Clean up sesh commit capture step

This commit is contained in:
2026-08-03 10:38:20 -04:00
parent 3e88eba293
commit 30339ac3bc

View File

@ -5,7 +5,7 @@
"model": "sonnet",
"hooks": {
"Stop": [
{ "hooks": [ { "type": "command", "command": "sesh capture --commit HEAD" } ] }
{ "hooks": [ { "type": "command", "command": "sh -c 'h=$(git rev-parse HEAD 2>/dev/null); [ -z \"$h\" ] && exit 0; f=\"$(git rev-parse --git-dir 2>/dev/null)/.sesh_last_capture_head\"; [ \"$h\" = \"$(cat \"$f\" 2>/dev/null)\" ] && exit 0; sesh capture --commit HEAD && echo \"$h\" > \"$f\"'" } ] }
],
"SubagentStop": [
{