The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(assistantUiMessages): add test for assistant message with tool call
Steven Enamakelb5a81dcc6e0b
diff --git a/app/src/providers/__tests__/assistantUiMessages.test.ts b/app/src/providers/__tests__/assistantUiMessages.test.tsindex 3885b81753..7152c8ef5c 100644--- a/app/src/providers/__tests__/assistantUiMessages.test.ts+++ b/app/src/providers/__tests__/assistantUiMessages.test.ts@@ -144,10 +144,14 @@ describe('streamingTailMessage', () => {const complete = streamingTailMessage(null, [tool({ id: 'sub-1', name: 'subagent:researcher', status: 'success', subagent }),]);+ // `result` is `{status, activity}`, not the bare activity: the outer row's+ // OWN `entry.status` is what settles reliably (`subagentDone` never+ // touches `activity.status` itself), so `SubagentTaskCard` reads that+ // rather than the activity's possibly-stale `status` field.expect(complete?.content[0]).toMatchObject({type: 'tool-call',toolName: 'task',- result: subagent,+ result: { status: 'success', activity: subagent },});});});