fix(subagent): retain unreadable children in migrated catalogs
This commit is contained in:
1 parent
f44b78a622
commit
17a52a8fe3
73 files changed
+908
-120
No files matched your search
@@ -595,6 +595,15 @@ def test_client_keeps_unmatched_notifications_available_globally_while_subscribe
|
||||
def test_session_subscription_keeps_descendant_relationships_across_subscriptions() -> None:
|
||||
client = HarnessClient()
|
||||
with client.subscribe_session_notifications("main") as first:
|
||||
unknown_child = {
|
||||
"type": "subagent/catalog-unknown", "seq": 0, "time": 1,
|
||||
"data": {"version": 0, "childId": "unreadable-child", "childCreatedAt": 1, "mode": "unknown"},
|
||||
}
|
||||
client._handle_message({
|
||||
"jsonrpc": "2.0", "method": "session.event",
|
||||
"params": {"sessionId": "main", "event": unknown_child},
|
||||
})
|
||||
assert first.next().payload == {"sessionId": "main", "event": unknown_child}
|
||||
client._handle_message({
|
||||
"jsonrpc": "2.0",
|
||||
"method": "subagent.started",
|
||||
|
||||
Reference in new issue
Block a user