From 2de0ce45d4e72b7b438b670512aed4495a33a5ec Mon Sep 17 00:00:00 2001 From: Jamkris Date: Mon, 18 May 2026 10:03:42 +0900 Subject: [PATCH] =?UTF-8?q?docs(hooks):=20correct=20PreToolUse=20=E2=86=92?= =?UTF-8?q?=20PostToolUse=20in=20readSessionCost=20docblock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit greptile P2 nitpick: the previous commit's docblock said "on every PreToolUse hook" but the module header (and the actual hook wiring in `hooks/hooks.json`) identifies this script as a PostToolUse hook — it runs *after* each tool invocation to update the running session aggregate. One-word typo, no behavior change. --- scripts/hooks/ecc-metrics-bridge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/hooks/ecc-metrics-bridge.js b/scripts/hooks/ecc-metrics-bridge.js index 241824f9..ebb6e394 100644 --- a/scripts/hooks/ecc-metrics-bridge.js +++ b/scripts/hooks/ecc-metrics-bridge.js @@ -89,7 +89,7 @@ function extractFilePaths(toolName, toolInput) { * * costs.jsonl is append-only and unbounded today (no rotation in * cost-tracker.js). At a typical ~150 bytes per row, even 100k rows - * is ~15 MB and a single sync read on every PreToolUse hook is in + * is ~15 MB and a single sync read on every PostToolUse hook is in * the low milliseconds. If rotation lands later, this scan becomes * even cheaper. */