From 4adcefdc21e1e7feccc2d2de0005b9dfe06a3515 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 28 Sep 2026 20:28:28 +0200 Subject: [PATCH] Let only a typed entry's leading < pass as the human's --- bin/loop_claude/claude_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"}]}}