mirror of
https://github.com/EvoMap/evolver.git
synced 2026-09-18 21:47:53 +08:00
cbc487086c
Claude Code's PostToolUse payload nests tool args under `tool_input` (and write-tool responses expose `tool_response.filePath`). The signal-detect hook was only reading the legacy top-level shape, so the `[Evolution Signal] Detected: [...]` additional-context block was silently returning `{}` on every real edit event.
Check `tool_input.*` and `tool_response.filePath` first, then fall back to the top-level keys so non-Claude-Code adapters and older callers are unaffected. Also picks up `new_string` so Edit-tool payloads are analyzed.
Co-authored-by: TanveerKahlon <TanveerKahlon@users.noreply.github.com>