Say an empty part list is not a human turn

This commit is contained in:
2026-09-25 17:45:43 +02:00
parent 8a021bbe02
commit 2ef017a231
+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")