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
refactor(chat): remove AssistantMessageScope wrapper from transcript rows
Steven Enamakel5991591f8264
diff --git a/app/src/features/conversations/components/ChatThreadView.tsx b/app/src/features/conversations/components/ChatThreadView.tsxindex fe184dd6d8..1773094638 100644--- a/app/src/features/conversations/components/ChatThreadView.tsx+++ b/app/src/features/conversations/components/ChatThreadView.tsx@@ -1,9 +1,3 @@-import {- type AssistantState,- MessagePrimitive,- ThreadPrimitive,- useAuiState,-} from '@assistant-ui/react';import {forwardRef,Fragment,@@ -62,34 +56,6 @@ const EMPTY_TRANSCRIPT_ENTRIES: ToolTimelineEntry[] = [];const EMPTY_TOOL_TIMELINE: ToolTimelineEntry[] = [];const EMPTY_PROCESSING: ProcessingTranscriptItem[] = [];-function AssistantMessageScope({- messageId,- children,-}: {- messageId: string;- children: ReactNode;-}) {- const hasRuntimeMessage = useAuiState(- useCallback(- (state: AssistantState) =>- state.optional.thread?.messages.some(message => message.id === messageId) ?? false,- [messageId]- )- );-- // The runtime deliberately contains only persisted chat messages plus its- // streaming tail. Tool timelines, interim narration, and parallel previews- // remain OpenHuman-specific siblings, but every settled turn now gets the- // core assistant-ui message scope for native hover/action/branch features.- if (!hasRuntimeMessage) return <>{children}</>;-- return (- <ThreadPrimitive.Unstable_MessageById messageId={messageId}>- <MessagePrimitive.Root className="contents">{children}</MessagePrimitive.Root>- </ThreadPrimitive.Unstable_MessageById>- );-}-export interface ChatThreadViewHandle {/** Opens the detached background sub-agents panel — called from the host* header's background-processes badge (`Conversations`' own copy of the@@ -517,21 +483,19 @@ export const ChatThreadView = forwardRef<ChatThreadViewHandle, ChatThreadViewPro`BranchPickerPrimitive` would attach INSIDE the row whenthe adapter grows `onEdit` / `setMessages` — see`EDIT_AND_BRANCH_SEAM` in `./aui/auiThreadState`. */}- <AssistantMessageScope messageId={msg.id}>- <TranscriptRow- msg={msg}- threadId={threadId}- agentMessageViewMode={agentMessageViewMode}- isLatestVisible={latestVisibleMessage?.id === msg.id}- isCopied={copiedMessageId === msg.id}- isReactionPickerOpen={reactionPickerMsgId === msg.id}- pastTurn={pastTurnAnchors[msg.id]}- shareAgentName={shareAgentName}- onCopy={handleCopyMessage}- onReact={handleReact}- onOpenReactionPicker={setReactionPickerMsgId}- />- </AssistantMessageScope>+ <TranscriptRow+ msg={msg}+ threadId={threadId}+ agentMessageViewMode={agentMessageViewMode}+ isLatestVisible={latestVisibleMessage?.id === msg.id}+ isCopied={copiedMessageId === msg.id}+ isReactionPickerOpen={reactionPickerMsgId === msg.id}+ pastTurn={pastTurnAnchors[msg.id]}+ shareAgentName={shareAgentName}+ onCopy={handleCopyMessage}+ onReact={handleReact}+ onOpenReactionPicker={setReactionPickerMsgId}+ />{msg.id === lastUserMessageId ? agentInsights : null}</Fragment>))}