[claude] Clean up sesh commit capture step
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
"model": "sonnet",
|
"model": "sonnet",
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"Stop": [
|
"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": [
|
"SubagentStop": [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user