Reply shape survives a compaction (#7716); test review pass (#8249); detector fix (#8292) #239

Merged
bvandeusen merged 27 commits from dev into main 2026-12-02 13:09:44 -05:00
Showing only changes of commit 85b29d642f - Show all commits
+3 -2
View File
@@ -1020,8 +1020,9 @@ def test_hook_is_executable_and_shell_valid():
])
def test_hook_reads_every_write_and_edit_payload_shape(tmp_path, tool, field):
"""Write and Edit name the payload differently, and the names have changed
across Claude Code versions: the code is sent whichever one is present."""
code = "def debounce(fn):\n return fn\n"
across Claude Code versions: the code is sent whichever one is present.
(The shell drops a trailing newline, so the code here has none.)"""
code = "def debounce(fn):\n return fn"
seen = _run_hook_against_sink(tmp_path, {
"session_id": f"s-shape-{field}", "cwd": str(tmp_path), "tool_name": tool,
"tool_input": {"file_path": str(tmp_path / "b.py"), field: code},