Skip to content

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

fix(assistantUiMessages): correct test for assistant message ordering

Steven Enamakeld56bdab2399a
diff --git a/app/src/providers/__tests__/assistantUiMessages.test.ts b/app/src/providers/__tests__/assistantUiMessages.test.ts
index 9875fb2611..3885b81753 100644
--- a/app/src/providers/__tests__/assistantUiMessages.test.ts
+++ b/app/src/providers/__tests__/assistantUiMessages.test.ts
@@ -740,14 +740,14 @@ describe('tool label on the part', () => {
});
});
- it('formats a row that arrived with no label from the tool identity', () => {
+ it('carries no artifact when the row has no server label — the renderer derives the label from tool identity', () => {
+ // `tool_search` is a client-known tool (an exact `toolSpecs.ts` entry), so
+ // `AssistantUiToolCall` resolves its own label through `describeToolCall`
+ // and never needs the artifact. Emitting one here would be pure noise.
const converted = toThreadMessageLike(msg({ id: 'a', sender: 'agent', content: 'done' }), [
tool({ id: 'c1', name: 'tool_search', status: 'success', argsBuffer: '{"query":"gmail"}' }),
]);
- expect(artifactOf(converted)).toEqual({
- kind: 'openhuman-tool',
- displayName: 'Finding the right tool',
- });
+ expect(artifactOf(converted)).toBeUndefined();
});
});