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
fix(assistantUiMessages): correct test for assistant message handling
Steven Enamakela8ff03669e28
diff --git a/app/src/providers/__tests__/assistantUiMessages.test.ts b/app/src/providers/__tests__/assistantUiMessages.test.tsindex aa04fc9672..6a975f51d6 100644--- a/app/src/providers/__tests__/assistantUiMessages.test.ts+++ b/app/src/providers/__tests__/assistantUiMessages.test.ts@@ -186,7 +186,7 @@ describe('buildRuntimeMessages', () => {const content = buildRuntimeMessages([answer], null, {turnTimelines: { 'req-1': timeline },turnTranscripts: { 'req-1': transcript },- })[0]?.content as { type: string; toolCallId?: string }[];+ })[0]?.content as unknown as { type: string; toolCallId?: string }[];const toolIds = content.filter(part => part.type === 'tool-call').map(part => part.toolCallId);expect(toolIds).toHaveLength(1);@@ -208,7 +208,7 @@ describe('buildRuntimeMessages', () => {const content = buildRuntimeMessages([answer], null, {turnTimelines: { 'req-1': timeline },turnTranscripts: { 'req-1': transcript },- })[0]?.content as { type: string; toolCallId?: string }[];+ })[0]?.content as unknown as { type: string; toolCallId?: string }[];const toolIds = content.filter(part => part.type === 'tool-call').map(part => part.toolCallId);expect(toolIds).toEqual(['c1', 'c2']);