From 8c200d4a83c2242f1c95d1d3751369e36d5e9f2d Mon Sep 17 00:00:00 2001 From: Dustin Smith Date: Mon, 19 Jan 2026 20:40:24 +0700 Subject: [PATCH] fix: use gt prime --hook in session hooks SessionStart and PreCompact hooks must use --hook flag to avoid gt doctor warnings about bare gt prime invocations. Co-Authored-By: Claude Opus 4.5 --- internal/.events.jsonl | 5 +++++ internal/claude/config/settings-autonomous.json | 4 ++-- internal/claude/config/settings-interactive.json | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 internal/.events.jsonl diff --git a/internal/.events.jsonl b/internal/.events.jsonl new file mode 100644 index 00000000..daccf82e --- /dev/null +++ b/internal/.events.jsonl @@ -0,0 +1,5 @@ +{"ts":"2026-01-18T09:52:29Z","source":"gt","type":"session_death","actor":"gt-gastown-witness","payload":{"agent":"unknown","caller":"gt doctor","reason":"zombie cleanup","session":"gt-gastown-witness"},"visibility":"feed"} +{"ts":"2026-01-18T10:00:24Z","source":"gt","type":"session_death","actor":"gt-gastown-witness","payload":{"agent":"unknown","caller":"gt doctor","reason":"zombie cleanup","session":"gt-gastown-witness"},"visibility":"feed"} +{"ts":"2026-01-18T10:06:48Z","source":"gt","type":"session_death","actor":"gt-gastown-witness","payload":{"agent":"unknown","caller":"gt doctor","reason":"zombie cleanup","session":"gt-gastown-witness"},"visibility":"feed"} +{"ts":"2026-01-18T14:26:38Z","source":"gt","type":"session_death","actor":"gt-gastown-witness","payload":{"agent":"unknown","caller":"gt doctor","reason":"zombie cleanup","session":"gt-gastown-witness"},"visibility":"feed"} +{"ts":"2026-01-18T14:30:02Z","source":"gt","type":"session_death","actor":"gt-gastown-witness","payload":{"agent":"unknown","caller":"gt doctor","reason":"zombie cleanup","session":"gt-gastown-witness"},"visibility":"feed"} diff --git a/internal/claude/config/settings-autonomous.json b/internal/claude/config/settings-autonomous.json index 54c119e9..07267d51 100644 --- a/internal/claude/config/settings-autonomous.json +++ b/internal/claude/config/settings-autonomous.json @@ -9,7 +9,7 @@ "hooks": [ { "type": "command", - "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt prime && gt mail check --inject && gt nudge deacon session-started" + "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt prime --hook && gt mail check --inject && gt nudge deacon session-started" } ] } @@ -20,7 +20,7 @@ "hooks": [ { "type": "command", - "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt prime" + "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt prime --hook" } ] } diff --git a/internal/claude/config/settings-interactive.json b/internal/claude/config/settings-interactive.json index 9fbef9e2..66747e06 100644 --- a/internal/claude/config/settings-interactive.json +++ b/internal/claude/config/settings-interactive.json @@ -9,7 +9,7 @@ "hooks": [ { "type": "command", - "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt prime && gt nudge deacon session-started" + "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt prime --hook && gt nudge deacon session-started" } ] } @@ -20,7 +20,7 @@ "hooks": [ { "type": "command", - "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt prime" + "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt prime --hook" } ] }