Name each clause of typed for the entry kind it drops #74

Merged
lilleman merged 2 commits from typed-clauses into main 2026-09-27 17:01:56 +02:00
Showing only changes of commit 869aa03733 - Show all commits
+1 -1
View File
@@ -419,7 +419,7 @@ def typed(entry):
command = isinstance(content, str) and content.startswith("<")
no_content = not isinstance(content, str) and not parts
non_text = any(not isinstance(part, dict) or part.get("type") != "text" for part in parts)
interruption = any(isinstance(part, dict) and part.get("type") == "text" and part.get("text", "").startswith("[Request interrupted") for part in parts)
interruption = not non_text and any(part.get("text", "").startswith("[Request interrupted") for part in parts)
return not (meta or loop_prompt or command or no_content or non_text or interruption)