Skip to content

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

Merge upstream/main into conversations-ui-cleanup

Steven Enamakel8e46a8b5409f
diff --cc app/src/components/assistant-ui/thread.tsx
index 7273fdd8ad,bb9c8a9f59..018b9247c0
--- a/app/src/components/assistant-ui/thread.tsx
+++ b/app/src/components/assistant-ui/thread.tsx
@@@ -1226,9 -1237,9 +1250,8 @@@ const SourceGroupSlot: FC<{ Component:
const AssistantMessage: FC = () => {
const {
ToolFallback: ToolFallbackComponent = ToolFallback,
- ToolGroup,
- ReasoningGroup,
+ ActivityGroup = DefaultActivityGroup,
- TurnFooter,
- TurnSources,
+ SourceGroup,
} = useContext(ThreadComponentsContext);
const ACTION_BAR_PT = 'pt-1.5';
@@@ -1274,47 -1288,14 +1300,17 @@@
className="text-foreground [&>*+*]:mt-3 [&_[data-slot=reasoning-root]]:mb-0 px-2 leading-relaxed wrap-break-word">
<MessagePrimitive.GroupedParts
groupBy={groupPartByType({
- reasoning: ['group-chainOfThought', 'group-reasoning'],
- 'tool-call': ['group-chainOfThought', 'group-tool'],
+ reasoning: ['group-activity'],
+ 'tool-call': ['group-activity'],
'standalone-tool-call': [],
+ source: ['group-source'],
})}>
{({ part, children }) => {
switch (part.type) {
- case 'group-chainOfThought':
- return (
- <div data-slot="aui_chain-of-thought" className="[&>*+*]:mt-3">
- {children}
- </div>
- );
- case 'group-tool':
- if (ToolGroup) {
- return <ToolGroup group={part}>{children}</ToolGroup>;
- }
- return (
- <ToolGroupRoot variant="ghost">
- <ToolGroupTrigger
- count={part.indices.length}
- active={part.status.type === 'running'}
- />
- <ToolGroupContent>{children}</ToolGroupContent>
- </ToolGroupRoot>
- );
- case 'group-reasoning': {
- if (ReasoningGroup) {
- return <ReasoningGroup group={part}>{children}</ReasoningGroup>;
- }
- // The static reasoning panel reads the grouped parts' text and
- // timing itself; the per-part `children` are only for overrides.
- return (
- <OpenHumanReasoningGroup
- indices={part.indices}
- running={part.status.type === 'running'}
- />
- );
- }
+ case 'group-activity':
+ return <ActivityGroup group={part}>{children}</ActivityGroup>;
+ case 'group-source':
+ return SourceGroup ? <SourceGroupSlot Component={SourceGroup} /> : null;
case 'text':
return <MarkdownText />;
case 'reasoning':
diff --cc app/src/features/conversations/components/AssistantUiChat.tsx
index 3bb8612f49,ceee3565fa..6b906a22ad
--- a/app/src/features/conversations/components/AssistantUiChat.tsx
+++ b/app/src/features/conversations/components/AssistantUiChat.tsx
@@@ -14,9 -15,11 +14,9 @@@ import { useAppSelector } from '../../.
import { DEFAULT_MASCOT_COLOR } from '../../../store/mascotSlice';
import { MascotChipAvatar } from '../../human/Mascot/MascotChipAvatar';
import { AssistantUiInferenceStatus } from './AssistantUiInferenceStatus';
+import { ChatSources } from './aui/ChatSources';
import { SubagentDrawerHost } from './aui/subagentDrawerHost';
- import { ChatToolFallback, ChatToolGroup } from './ChatToolParts';
-import { TurnFooter } from './aui/TurnFooter';
-import { TurnFooterHost } from './aui/turnFooterHost';
-import { TurnSources } from './aui/TurnSources';
+ import { ChatToolFallback } from './ChatToolParts';
import { contextUsageFromTokenUsage, ContextWindowPill } from './composer/ContextWindowPill';
const EMPTY_TOKEN_USAGE = emptySessionTokenUsage();