From d004c694f1cef0e972985a3a0852790a4ed9a4c3 Mon Sep 17 00:00:00 2001 From: Tianyi Cui <53024+tianyicui@users.noreply.github.com> Date: Sun, 2 Aug 2026 13:48:50 +0800 Subject: [PATCH] test(web): narrow the stale-pull assertion to the root catalog's calls --- packages/client/runtime/tests/manager.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/runtime/tests/manager.spec.ts b/packages/client/runtime/tests/manager.spec.ts index 2d456a9c34..c37f0b88a1 100644 --- a/packages/client/runtime/tests/manager.spec.ts +++ b/packages/client/runtime/tests/manager.spec.ts @@ -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 })