Skip to content

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

test: add tests for tool presentation and timeline formatting

Steven Enamakel0bb8a129e402
diff --git a/app/src/features/conversations/tools/toolPresentation.test.ts b/app/src/features/conversations/tools/toolPresentation.test.ts
index e11af12e37..1f6983b827 100644
--- a/app/src/features/conversations/tools/toolPresentation.test.ts
+++ b/app/src/features/conversations/tools/toolPresentation.test.ts
@@ -134,7 +134,7 @@ describe('tool labels: regressions', () => {
});
it('labels named agents and delegations by what they do', () => {
- expect(done('subagent:researcher')).toBe('Researched');
+ expect(done('subagent:planner')).toBe('Planned next steps');
expect(done('spawn_subagent', { agent_id: 'critic' })).toBe('Reviewed the work');
expect(done('delegate_gmail')).toBe('Used Gmail');
expect(active('run_code')).toBe('Running code');
diff --git a/app/src/utils/__tests__/toolTimelineFormatting.test.ts b/app/src/utils/__tests__/toolTimelineFormatting.test.ts
index 1c10a5d5ef..4990519939 100644
--- a/app/src/utils/__tests__/toolTimelineFormatting.test.ts
+++ b/app/src/utils/__tests__/toolTimelineFormatting.test.ts
@@ -109,8 +109,8 @@ describe('formatTimelineEntry', () => {
});
it('falls back to humanized generic labels for non-integration subagents', () => {
- expect(formatTimelineEntry(entry({ name: 'subagent:researcher' }))).toEqual({
- title: 'Researching',
+ expect(formatTimelineEntry(entry({ name: 'subagent:context_scout' }))).toEqual({
+ title: 'Scouting context',
detail: undefined,
});
});
@@ -382,7 +382,7 @@ describe('isKnownClientTool', () => {
it('recognizes built-ins and special agent rows', () => {
expect(isKnownClientTool('file_read')).toBe(true);
expect(isKnownClientTool('shell')).toBe(true);
- expect(isKnownClientTool('subagent:researcher')).toBe(true);
+ expect(isKnownClientTool('subagent:context_scout')).toBe(true);
// The streamed search-slot name, so the client label wins over the
// server's humanized "Web Search Tool".
expect(isKnownClientTool('web_search_tool')).toBe(true);