diff --git a/packages/client/ui-conversation/tests/diff-card.spec.tsx b/packages/client/ui-conversation/tests/diff-card.spec.tsx index 8744e6b802..1722b9628e 100644 --- a/packages/client/ui-conversation/tests/diff-card.spec.tsx +++ b/packages/client/ui-conversation/tests/diff-card.spec.tsx @@ -156,6 +156,8 @@ describe('FileMutationRow diff card', () => { byId: { [SID]: { id: SID, displayTitle: 'r', running: false, blank: false, waitingApproval: false, updatedAt: 0, cwd: '/w/app' } }, current: SID, phase: 'ready', + subagentsByParent: {}, + currentAddress: undefined, }) const rowProps = (block: RunningToolCall | ToolResultNode, toolName = 'edit'): FileMutationRowProps => ({ @@ -301,12 +303,14 @@ describe('DetailsPanel diff Output section', () => { const chat = createChatStore().create() if (selection !== null) chat.actions.select(selection) const sessions = createSnapshotStore(cwd === undefined - ? { ids: [], byId: {}, current: undefined, phase: 'ready' } + ? { ids: [], byId: {}, current: undefined, phase: 'ready', subagentsByParent: {}, currentAddress: undefined } : { ids: [SID], byId: { [SID]: { id: SID, displayTitle: 'r', running: false, blank: false, waitingApproval: false, updatedAt: 0, cwd } }, current: SID, phase: 'ready', + subagentsByParent: {}, + currentAddress: undefined, }) const workspaces = createSnapshotStore({ items: [], archivedSessionIds: [], state: 'idle', phase: 'ready', error: null, @@ -334,7 +338,7 @@ describe('DetailsPanel diff Output section', () => { sessionId: SID, nodes: [], partial: null, runningCalls: [], codeDispatches: new Map(), pending: [], queue: [], running: false, composerPhase: 'active', removed: false, openState: 'open', openError: null, hasMore: false, loadingOlder: false, - promptError: null, blank: false, lastAgentError: null, ...over, + promptError: null, blank: false, subagent: null, lastAgentError: null, ...over, } } diff --git a/packages/client/ui-conversation/tests/read-card.spec.tsx b/packages/client/ui-conversation/tests/read-card.spec.tsx index b8c08a2bb6..700c8c3d75 100644 --- a/packages/client/ui-conversation/tests/read-card.spec.tsx +++ b/packages/client/ui-conversation/tests/read-card.spec.tsx @@ -170,6 +170,8 @@ describe('ReadRow keyed toolview', () => { byId: { [SID]: { id: SID, displayTitle: 'r', running: false, blank: false, waitingApproval: false, updatedAt: 0, cwd: '/w/app' } }, current: SID, phase: 'ready', + subagentsByParent: {}, + currentAddress: undefined, }) const rowProps = (block: RunningToolCall | ToolResultNode): Parameters[0] => ({ @@ -249,12 +251,14 @@ describe('DetailsPanel Output section (read)', () => { const chat = createChatStore().create() if (selection !== null) chat.actions.select(selection) const sessions = createSnapshotStore(cwd === undefined - ? { ids: [], byId: {}, current: undefined, phase: 'ready' } + ? { ids: [], byId: {}, current: undefined, phase: 'ready', subagentsByParent: {}, currentAddress: undefined } : { ids: [SID], byId: { [SID]: { id: SID, displayTitle: 'r', running: false, blank: false, waitingApproval: false, updatedAt: 0, cwd } }, current: SID, phase: 'ready', + subagentsByParent: {}, + currentAddress: undefined, }) const workspaces = createSnapshotStore({ items: [], archivedSessionIds: [], state: 'idle', phase: 'ready', error: null, @@ -282,7 +286,7 @@ describe('DetailsPanel Output section (read)', () => { sessionId: SID, nodes: [], partial: null, runningCalls: [], codeDispatches: new Map(), pending: [], queue: [], running: false, composerPhase: 'active', removed: false, openState: 'open', openError: null, hasMore: false, loadingOlder: false, - promptError: null, blank: false, lastAgentError: null, ...over, + promptError: null, blank: false, subagent: null, lastAgentError: null, ...over, } } diff --git a/packages/client/ui-conversation/tests/search-card.spec.tsx b/packages/client/ui-conversation/tests/search-card.spec.tsx index 75114ae9a2..b4306d064d 100644 --- a/packages/client/ui-conversation/tests/search-card.spec.tsx +++ b/packages/client/ui-conversation/tests/search-card.spec.tsx @@ -370,7 +370,10 @@ describe('DetailsPanel Output section (search)', () => { localStorage.clear() const chat = createChatStore().create() if (selection !== null) chat.actions.select(selection) - const sessions = createSnapshotStore({ ids: [], byId: {}, current: undefined, phase: 'ready' }) + const sessions = createSnapshotStore({ + ids: [], byId: {}, current: undefined, phase: 'ready', + subagentsByParent: {}, currentAddress: undefined, + }) const workspaces = createSnapshotStore({ items: [], archivedSessionIds: [], state: 'idle', phase: 'ready', error: null, baselinesReady: true, recentWorkspaceId: undefined, @@ -397,7 +400,7 @@ describe('DetailsPanel Output section (search)', () => { sessionId: SID, nodes: [], partial: null, runningCalls: [], codeDispatches: new Map(), pending: [], queue: [], running: false, composerPhase: 'active', removed: false, openState: 'open', openError: null, hasMore: false, loadingOlder: false, - promptError: null, blank: false, lastAgentError: null, ...over, + promptError: null, blank: false, subagent: null, lastAgentError: null, ...over, } } diff --git a/packages/client/ui-conversation/tests/terminal-card.spec.tsx b/packages/client/ui-conversation/tests/terminal-card.spec.tsx index a8473e7762..2ae268debd 100644 --- a/packages/client/ui-conversation/tests/terminal-card.spec.tsx +++ b/packages/client/ui-conversation/tests/terminal-card.spec.tsx @@ -345,6 +345,8 @@ describe('BashRow terminal card', () => { byId: { [SID]: { id: SID, displayTitle: 'r', running: false, blank: false, waitingApproval: false, updatedAt: 0 } }, current: undefined, phase: 'ready', + subagentsByParent: {}, + currentAddress: undefined, }) const rowProps = (block: RunningToolCall | ToolResultNode): BashRowProps => ({ @@ -421,12 +423,14 @@ describe('DetailsPanel Output section', () => { const chat = createChatStore().create() if (selection !== null) chat.actions.select(selection) const sessions = createSnapshotStore(cwd === undefined - ? { ids: [], byId: {}, current: undefined, phase: 'ready' } + ? { ids: [], byId: {}, current: undefined, phase: 'ready', subagentsByParent: {}, currentAddress: undefined } : { ids: [SID], byId: { [SID]: { id: SID, displayTitle: 'r', running: false, blank: false, waitingApproval: false, updatedAt: 0, cwd } }, current: SID, phase: 'ready', + subagentsByParent: {}, + currentAddress: undefined, }) const workspaces = createSnapshotStore({ items: [], archivedSessionIds: [], state: 'idle', phase: 'ready', error: null, @@ -454,7 +458,7 @@ describe('DetailsPanel Output section', () => { sessionId: SID, nodes: [], partial: null, runningCalls: [], codeDispatches: new Map(), pending: [], queue: [], running: false, composerPhase: 'active', removed: false, openState: 'open', openError: null, hasMore: false, loadingOlder: false, - promptError: null, blank: false, lastAgentError: null, ...over, + promptError: null, blank: false, subagent: null, lastAgentError: null, ...over, } } @@ -605,7 +609,10 @@ describe('DetailsPanel Output section', () => { sessionId={SID} useSession={bindSnapshotSelector({ getSnapshot: () => snap, subscribe: () => () => {} })} useSessions={bindSnapshotSelector(createSnapshotStore( - { ids: [], byId: {}, current: undefined, phase: 'ready' }))} + { + ids: [], byId: {}, current: undefined, phase: 'ready', + subagentsByParent: {}, currentAddress: undefined, + }))} useWorkspaces={bindSnapshotSelector(createSnapshotStore({ items: [], archivedSessionIds: [], state: 'idle', phase: 'ready', error: null, baselinesReady: true, recentWorkspaceId: undefined, diff --git a/packages/client/ui-conversation/tests/web-card.spec.tsx b/packages/client/ui-conversation/tests/web-card.spec.tsx index 42dc729e41..a60c16f77c 100644 --- a/packages/client/ui-conversation/tests/web-card.spec.tsx +++ b/packages/client/ui-conversation/tests/web-card.spec.tsx @@ -205,7 +205,10 @@ describe('DetailsPanel web Output section', () => { localStorage.clear() const chat = createChatStore().create() if (selection !== null) chat.actions.select(selection) - const sessions = createSnapshotStore({ ids: [], byId: {}, current: undefined, phase: 'ready' }) + const sessions = createSnapshotStore({ + ids: [], byId: {}, current: undefined, phase: 'ready', + subagentsByParent: {}, currentAddress: undefined, + }) const workspaces = createSnapshotStore({ items: [], archivedSessionIds: [], state: 'idle', phase: 'ready', error: null, baselinesReady: true, recentWorkspaceId: undefined, @@ -232,7 +235,7 @@ describe('DetailsPanel web Output section', () => { sessionId: SID, nodes: [], partial: null, runningCalls: [], codeDispatches: new Map(), pending: [], queue: [], running: false, composerPhase: 'active', removed: false, openState: 'open', openError: null, hasMore: false, loadingOlder: false, - promptError: null, blank: false, lastAgentError: null, ...over, + promptError: null, blank: false, subagent: null, lastAgentError: null, ...over, } }