feat(core): seeds without text wait for the first turn

This commit is contained in:
hh
2026-08-28 19:03:08 +02:00
parent 1f8dae57ac
commit 21766fe2d7
3 changed files with 42 additions and 12 deletions
+6
View File
@@ -396,8 +396,14 @@ async def test_copy_seed_forks_parent_with_window(world: World) -> None:
"q6",
[{"type": "text", "text": "a7"}],
]
assert (await world.conversations.get(child.external_id)).flags["seed"] == "copy"
await world.conversations.post(child, "go")
await world.settle(child, 1)
assert ScriptedClient.instances[0].options.resume == child.session_id
prompt = ScriptedClient.instances[0].prompts[0]
assert prompt.startswith("[сид: copy] branch, ")
assert "последние 1 тёрнов" in prompt and prompt.endswith("\n\ngo")
assert (await world.conversations.get(child.external_id)).flags["seed"] is None
async def test_merge_injects_summary_into_parent(world: World) -> None: