From 2ef017a231f8ad43c344a8b302226e9f50badec5 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 25 Sep 2026 17:45:43 +0200 Subject: [PATCH] Say an empty part list is not a human turn --- bin/loop-claude | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/loop-claude b/bin/loop-claude index 1bd929ce..f383f0ec 100755 --- a/bin/loop-claude +++ b/bin/loop-claude @@ -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 "<" ( 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 "<" ( 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")