fix(subagent): preserve creator identity and admit prompts through Team roots
This commit is contained in:
1 parent
7a8e9c8ccf
commit
894a825c73
68 files changed
+330
-397
No files matched your search
@@ -630,6 +630,20 @@ def test_session_subscription_keeps_descendant_relationships_across_subscription
|
||||
assert client._notifications.qsize() == 0
|
||||
|
||||
|
||||
def test_subtree_keeps_descendant_completion_after_creator_finishes() -> None:
|
||||
client = HarnessClient()
|
||||
with client.subscribe_session_notifications("child") as subtree:
|
||||
for method, parent, child in [
|
||||
("subagent.started", "root", "child"),
|
||||
("subagent.started", "child", "leaf"),
|
||||
("subagent.finished", "root", "child"),
|
||||
("subagent.finished", "child", "leaf"),
|
||||
]:
|
||||
client._handle_message({"jsonrpc": "2.0", "method": method,
|
||||
"params": {"parentSessionId": parent, "childSessionId": child}})
|
||||
assert subtree.next().payload == {"parentSessionId": parent, "childSessionId": child}
|
||||
|
||||
|
||||
def test_session_subscription_preserves_reused_child_ancestry_after_late_finish() -> None:
|
||||
client = HarnessClient()
|
||||
old_seen: list[Notification] = []
|
||||
|
||||
Reference in new issue
Block a user