Skip to content

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

fix(chat): handle missing tool call arguments gracefully

Steven Enamakelc55e8408d4d0
diff --git a/app/src/features/conversations/components/ChatToolParts.test.tsx b/app/src/features/conversations/components/ChatToolParts.test.tsx
index f42528c6a7..f2a0180304 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(
<ChatToolFallback
diff --git a/app/src/features/conversations/components/ChatToolParts.tsx b/app/src/features/conversations/components/ChatToolParts.tsx
index 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';