fix: use correct hook field name last_assistant_message

The Claude Code Stop hook sends `last_assistant_message`, not
`assistant_message`. This was causing response_chars=0 on all
captured interactions. Also removes the temporary debug log block.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-11 09:17:21 -04:00
parent 2d911909f8
commit 92fc250b54
2 changed files with 4 additions and 3 deletions

View File

@@ -59,8 +59,9 @@ def _capture() -> None:
return
hook_data = json.loads(raw)
session_id = hook_data.get("session_id", "")
assistant_message = hook_data.get("assistant_message", "")
assistant_message = hook_data.get("last_assistant_message", "")
transcript_path = hook_data.get("transcript_path", "")
cwd = hook_data.get("cwd", "")