test(web): narrow the stale-pull assertion to the root catalog's calls

This commit is contained in:
Tianyi Cui
2026-08-02 13:48:50 +08:00
parent c8b2e70988
commit d004c694f1

View File

@@ -620,7 +620,7 @@ describe('subagent catalogs', () => {
await trailing.promise
const rootCalls = api.callsOf('subagent.list')
.filter((call: { parentSessionId: SessionId }) => call.parentSessionId === root)
.filter(call => (call as { parentSessionId: SessionId }).parentSessionId === root)
expect(rootCalls).toHaveLength(3)
expect(manager.getListSnapshot().subagentsByParent[root]?.parentAvailable).toBe(false)
expect(manager.get(S2).getSnapshot().subagent).toMatchObject({ parentAvailable: false })