From bd7a41a57ba3fda78bd02d592fa9fdc1f0ebc9ae Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 26 Sep 2026 13:28:17 +0200 Subject: [PATCH] Expect the loop's own prompts, promptSource sdk, to be no human turn --- bin/test_loop_claude.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/test_loop_claude.py b/bin/test_loop_claude.py index d222fbf2..2224c7f7 100644 --- a/bin/test_loop_claude.py +++ b/bin/test_loop_claude.py @@ -74,6 +74,7 @@ class Render(unittest.TestCase): human([{"type": "tool_result", "content": "not typed"}]), human("/exit"), human([{"type": "text", "text": "yes, "}, {"type": "text", "text": "merge it"}]), + {**human("Continue the task; the previous run stopped before it was finished."), "promptSource": "sdk"}, ]) self.assertEqual(said, '[human] do it\n\nStarting.\n\n[tool Bash] {"command": "ls"}\n\n[human] yes, merge it') @@ -86,6 +87,7 @@ class HumanTurns(unittest.TestCase): human([{"type": "tool_result", "content": "not typed"}]), human("/model"), {**human("peer message"), "isMeta": True}, + {**human("the loop's own prompt"), "promptSource": "sdk"}, human([{"type": "text", "text": "[Request interrupted by user]"}]), human([]), assistant({"type": "text", "text": "said"}),