diff --git a/bin/loop_claude/claude_code.py b/bin/loop_claude/claude_code.py index 7f2e5499..9c39080d 100644 --- a/bin/loop_claude/claude_code.py +++ b/bin/loop_claude/claude_code.py @@ -71,7 +71,7 @@ def user_entry_kind(entry): # {"type": "user", "promptSource": "typed", "message": {"content": "merge it"}} if isinstance(text := content(entry), str): source = entry.get("promptSource") - return UserEntryKind.COMMAND if source == "system" or (source is None and text.startswith("<")) else UserEntryKind.HUMAN + return UserEntryKind.COMMAND if source == "system" or (source != "typed" and text.startswith("<")) else UserEntryKind.HUMAN if not parts(entry): return UserEntryKind.EMPTY # {"type": "user", "message": {"content": [{"tool_use_id": "toolu_01…", "type": "tool_result", "content": "hi"}]}}