Say an empty part list is not a human turn
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user