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(chat): handle missing tool call arguments gracefully
Steven Enamakel1e714aca3b99
diff --git a/app/src/features/conversations/components/ChatToolParts.test.tsx b/app/src/features/conversations/components/ChatToolParts.test.tsxindex 1aa5c2dd93..8e423184d4 100644--- a/app/src/features/conversations/components/ChatToolParts.test.tsx+++ b/app/src/features/conversations/components/ChatToolParts.test.tsx@@ -3,7 +3,7 @@ import userEvent from '@testing-library/user-event';import { describe, expect, it } from 'vitest';import type { SubagentActivity } from '../../../store/chatRuntimeSlice';-import { ChatToolFallback, ChatToolGroup } from './ChatToolParts';+import { ChatToolFallback } from './ChatToolParts';const activity: SubagentActivity = {taskId: 'sub-1',@@ -140,16 +140,6 @@ describe('ChatToolParts', () => {expect(container).toBeTruthy();});- it('opens a group containing in-flight work on mount', () => {- render(- <ChatToolGroup group={{ type: 'group-tool-call', status: { type: 'running' }, indices: [0] }}>- <span>live delegation</span>- </ChatToolGroup>- );-- expect(screen.getByText('live delegation')).toBeVisible();- });-it('renders ordinary tools with rich input and output on the assistant-ui surface', async () => {render(<ChatToolFallbackdiff --git a/app/src/features/conversations/components/ChatToolParts.tsx b/app/src/features/conversations/components/ChatToolParts.tsxindex f0b7d16efa..572c881659 100644--- a/app/src/features/conversations/components/ChatToolParts.tsx+++ b/app/src/features/conversations/components/ChatToolParts.tsx@@ -3,14 +3,8 @@ import {type ToolCallMessagePartComponent,useAui,} from '@assistant-ui/react';-import { type FC, type PropsWithChildren, useCallback } from 'react';+import { type FC, useCallback } from 'react';-import type { ThreadGroupPart } from '../../../components/assistant-ui/thread';-import {- ToolGroupContent,- ToolGroupRoot,- ToolGroupTrigger,-} from '../../../components/assistant-ui/tool-group';import ApprovalRequestCard from '../../../components/chat/ApprovalRequestCard';import IntegrationConnectCard from '../../../components/chat/IntegrationConnectCard';import { useAuiThreadId } from '../../../providers/AssistantUiRuntimeProvider';