Answer stability round 1: 0 🔴, 5 🟡 (0 misread); read tool results from the API requests Claude Code logs again, test the fields every kind carries, mixed blocks, reads by tool and cwd, and indented or mixed security prompts; drop a cwd fallback that changes no commit found

This commit is contained in:
2026-11-09 00:49:37 +01:00
parent d1ff133941
commit 7a5df16882
6 changed files with 46 additions and 10 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ def entries_of(raw: bytes) -> list[Entry]:
def commit_time(worker: list[Entry], home: str) -> str | None:
return next((turn.timestamp for turn, call in tool_calls(worker) if call.name == "Bash" and commits(simple_commands(str(call.input.get("command", "")), turn.cwd or "/", home), home)), None)
return next((turn.timestamp for turn, call in tool_calls(worker) if call.name == "Bash" and commits(simple_commands(str(call.input.get("command", "")), turn.cwd, home), home)), None)
def tokens_in(turns: list[AssistantTurn]) -> int: