Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: update tool call labels to match new UI copy

Steven Enamakel2a455aa374fe
diff --git a/app/src/features/conversations/components/__tests__/AgentProcessSourcePanel.test.tsx b/app/src/features/conversations/components/__tests__/AgentProcessSourcePanel.test.tsx
index fd0f5fd301..677628dde3 100644
--- a/app/src/features/conversations/components/__tests__/AgentProcessSourcePanel.test.tsx
+++ b/app/src/features/conversations/components/__tests__/AgentProcessSourcePanel.test.tsx
@@ -160,7 +160,7 @@ describe('AgentProcessSourcePanel', () => {
expect(screen.getByText('Let me check both docs first.')).toBeInTheDocument();
expect(screen.getByText('Now I can see what is missing.')).toBeInTheDocument();
// The two consecutive reads collapse into one human-summarized group.
- expect(screen.getByText('Read 2 files')).toBeInTheDocument();
+ expect(screen.getByText('2 steps · Read file ×2')).toBeInTheDocument();
expect(screen.getByTestId('processing-transcript')).toBeInTheDocument();
});
@@ -226,7 +226,7 @@ describe('AgentProcessSourcePanel', () => {
/>
);
// Header shows the step's label, not the generic title.
- expect(screen.getByText('Researching')).toBeInTheDocument();
+ expect(screen.getByText('Researched')).toBeInTheDocument();
// Only the scoped step's activity renders…
openFirstSubagent();
expect(screen.getByTestId('subagent-activity').textContent).toContain('scoped thought');
@@ -248,7 +248,7 @@ describe('AgentProcessSourcePanel', () => {
renderPanel(
<AgentProcessSourcePanel open entries={[scoped]} scopedEntry={scoped} onClose={() => {}} />
);
- expect(screen.getByText('Run Code')).toBeInTheDocument();
+ expect(screen.getByText('Ran code')).toBeInTheDocument();
expect(screen.getByText(/All checks passed/)).toBeInTheDocument();
expect(screen.queryByText(/pnpm test/)).toBeNull();
});
diff --git a/app/src/features/conversations/components/__tests__/SubagentDrawer.test.tsx b/app/src/features/conversations/components/__tests__/SubagentDrawer.test.tsx
index 4d079b2353..c898380ce5 100644
--- a/app/src/features/conversations/components/__tests__/SubagentDrawer.test.tsx
+++ b/app/src/features/conversations/components/__tests__/SubagentDrawer.test.tsx
@@ -178,7 +178,10 @@ describe('SubagentDrawer', () => {
await waitFor(() =>
expect(screen.getByTestId('subagent-parent-prompt').textContent).toContain('Research Q3')
);
- expect(screen.getByTestId('assistant-ui-tool-call').textContent).toContain('Searched the web');
+ const row = screen.getByTestId('assistant-ui-tool-call');
+ expect(row.textContent).toContain('Used tool');
+ expect(row.textContent).toContain('openhuman turn state');
+ expect(row.textContent).not.toContain('Searched the web');
expect(screen.getByTestId('subagent-transcript-text').textContent).toContain(
'Revenue grew 18%'
);
@@ -345,7 +348,7 @@ describe('SubagentDrawer', () => {
expect(screen.queryByTestId('assistant-ui-tool-output')).toBeNull();
});
- it('derives a search label from the arguments when the server label degraded to "tool"', () => {
+ it('keeps a degraded "tool" row readable from its arguments, without guessing a web search', () => {
// A provider that hands back a generic `tool` name leaves the row with
// nothing better than "Tool" unless the arguments are there to read. Those
// arguments only survive a reload because the snapshot now carries them
@@ -364,6 +367,9 @@ describe('SubagentDrawer', () => {
render(
<SubagentDrawer subagent={activity({ transcript })} status="success" onClose={() => {}} />
);
- expect(screen.getByTestId('assistant-ui-tool-call').textContent).toContain('Searched the web');
+ const row = screen.getByTestId('assistant-ui-tool-call');
+ expect(row.textContent).toContain('Used tool');
+ expect(row.textContent).toContain('openhuman turn state');
+ expect(row.textContent).not.toContain('Searched the web');
});
});