You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(hook): read Claude Code payload from stdin (v0.2.8)
Critical: prior versions interpolated $CLAUDE_HOOK_NAME and
$CLAUDE_HOOK_TEXT in the install-hooks command — Claude Code never
sets those env vars. Production hooks always called the classifier
with empty text, every event piled up in pending/, and the journal
never recorded anything beyond what manual `task-journal event`
produced.
Fix:
- IngestHook.kind / .text become Option<String>. When omitted, the
command reads stdin as JSON (the actual hook payload) and projects
it to a (kind, text) pair: UserPromptSubmit -> prompt; PreToolUse /
PostToolUse -> "{tool_name}: {tool_input}[ -> {tool_response}]";
Stop / SessionStart -> empty.
- install-hooks now writes `task-journal ingest-hook --backend=cli ||
true` — no env-var interpolation. The `|| true` safety net stays.
- Empty stdin returns ("Stop", "") instead of erroring, so dry-run
invocations and missing pipes don't crash.
3 new integration tests cover UserPromptSubmit prompt extraction,
PostToolUse tool_name+input+response synthesis, and the install-
hooks command no longer containing the bogus env vars. CLI overrides
(--kind / --text) still work for the legacy unit/integration tests.
Closes claude-memory-rsw.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
"description": "Append-only journal of AI-coding task reasoning chains. Captures hypotheses, decisions, rejections, evidence — renders compact resume packs so an agent can pick up a 2-week-old task with full context.",
Copy file name to clipboardExpand all lines: plugin/.claude-plugin/plugin.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "task-journal",
3
-
"version": "0.2.7",
3
+
"version": "0.2.8",
4
4
"description": "Append-only journal of AI-coding task reasoning chains: hypotheses, decisions, rejections, evidence. Renders compact resume packs so an agent can pick up a 2-week-old task with full context.",
Copy file name to clipboardExpand all lines: plugin/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "task-journal",
3
-
"version": "0.2.7",
3
+
"version": "0.2.8",
4
4
"description": "Append-only journal of AI-coding task reasoning chains. Captures hypotheses, decisions, rejections, evidence — renders compact resume packs so an agent can pick up a 2-week-old task with full context.",
0 commit comments