Skip to content

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

fix(chat): correct tool call rendering in ChatToolParts test

Steven Enamakel9c3e6c60a25b
diff --git a/app/src/features/conversations/components/ChatToolParts.test.tsx b/app/src/features/conversations/components/ChatToolParts.test.tsx
index e3866584c8..2a592ca6b1 100644
--- a/app/src/features/conversations/components/ChatToolParts.test.tsx
+++ b/app/src/features/conversations/components/ChatToolParts.test.tsx
@@ -14,9 +14,14 @@ const activity: SubagentActivity = {
};
describe('ChatToolParts', () => {
+ // `task` is registered as a `defineToolkit` entry (`aui/toolkit.tsx`) that
+ // renders `SubagentCall` directly — assistant-ui resolves it ahead of
+ // `ChatToolFallback`, so these render `SubagentCall` the way the toolkit
+ // does rather than routing a `toolName="task"` part through the fallback,
+ // which no longer special-cases it.
it('renders a running delegation collapsed by default', async () => {
render(
- <ChatToolFallback
+ <SubagentCall
type="tool-call"
toolName="task"
toolCallId="sub-1"