Define a human turn at typed, the entry it tests #42

Merged
lilleman merged 3 commits from typed-definition into main 2026-09-25 17:47:08 +02:00
Showing only changes of commit 2ef017a231 - Show all commits
+1 -1
View File
@@ -173,7 +173,7 @@ def render(entries):
def typed(entry):
"""A human turn: a "user" entry, not isMeta, whose message.content is a string not starting with "<" (<command-name> and its kind) or text parts none starting with "[Request interrupted"; Claude Code writes the rest, tool_result lists among them."""
"""A human turn: a "user" entry, not isMeta, whose message.content is a string not starting with "<" (<command-name> and its kind) or one or more text parts, none starting with "[Request interrupted"; Claude Code writes the rest, tool_result lists among them."""
if entry.get("type") != "user" or entry.get("isMeta"):
return False
content = entry.get("message", {}).get("content")