Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: verify pipeline transcript access from completion summaries

[._.]/ Adam Eivyd8c0fe765b33
diff --git a/client/src/components/cos/tabs/AgentCard.test.jsx b/client/src/components/cos/tabs/AgentCard.test.jsx
index ae359fbf91..cd7fc265b4 100644
--- a/client/src/components/cos/tabs/AgentCard.test.jsx
+++ b/client/src/components/cos/tabs/AgentCard.test.jsx
@@ -1314,3 +1314,19 @@ it('keeps a dangerous scan report visible while the summary is collapsed', () =>
expect(screen.getByRole('link', { name: 'View scan report (DANGEROUS)' })).toHaveAttribute('href', '/example-report');
expect(screen.queryByText('Example scan summary')).not.toBeInTheDocument();
});
+
+
+it('loads prior pipeline stage output through the full transcript disclosure', async () => {
+ const record = { ...agent, metadata: { ...agent.metadata, taskSummary: 'Pipeline complete', pipeline: {
+ stages: [{ name: 'Plan' }, { name: 'Implement' }], currentStage: 1,
+ stageResults: [{ stage: 0, agentId: 'prior-stage', success: true }],
+ } }, output: [{ line: 'Implementation transcript' }] };
+ api.getCosAgent.mockImplementation(async id => id === 'prior-stage'
+ ? { output: [{ line: 'Prior planning transcript' }] } : record);
+ render(<MemoryRouter><AgentCard agent={record} completed /></MemoryRouter>);
+ await userEvent.click(screen.getByRole('button', { name: 'Show', exact: true }));
+ await userEvent.click(screen.getByRole('button', { name: 'Show full transcript' }));
+ expect(await screen.findByText('Implementation transcript')).toBeInTheDocument();
+ await userEvent.click(screen.getByRole('button', { name: /Plan/ }));
+ expect(await screen.findByText('Prior planning transcript')).toBeInTheDocument();
+});