Skip to content

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

fix(test): correct expected title for malformed tool-call test

Steven Enamakel1b7cca8b8489
diff --git a/app/src/utils/__tests__/toolTimelineFormatting.test.ts b/app/src/utils/__tests__/toolTimelineFormatting.test.ts
index 5fbbdb0d2e..ce5a84995f 100644
--- a/app/src/utils/__tests__/toolTimelineFormatting.test.ts
+++ b/app/src/utils/__tests__/toolTimelineFormatting.test.ts
@@ -19,6 +19,11 @@ function entry(overrides: Partial<ToolTimelineEntry>): ToolTimelineEntry {
}
describe('formatTimelineEntry', () => {
+ it('falls back to the bridge label for a malformed tool-call name', () => {
+ expect(
+ formatTimelineEntry(entry({ name: 'tool_call', argsBuffer: JSON.stringify({ name: 42 }) }))
+ ).toEqual({ title: 'Using a tool', detail: undefined });
+ });
it('formats integration delegation tools with a user-facing provider label', () => {
expect(
formatTimelineEntry(