diff --git a/apps/desktop/src/components/assistant-ui/markdown-text.media.test.tsx b/apps/desktop/src/components/assistant-ui/markdown-text.media.test.tsx index ca64acd4c746..e534da37eb93 100644 --- a/apps/desktop/src/components/assistant-ui/markdown-text.media.test.tsx +++ b/apps/desktop/src/components/assistant-ui/markdown-text.media.test.tsx @@ -16,6 +16,7 @@ describe('MarkdownTextContent remote images', () => { throw new Error(`unexpected path ${path}`) }) + let originalDesktop: typeof window.hermesDesktop beforeEach(() => { diff --git a/apps/desktop/src/components/assistant-ui/tool/fallback-model/index.ts b/apps/desktop/src/components/assistant-ui/tool/fallback-model/index.ts index dde24c1b4209..8437dfee4239 100644 --- a/apps/desktop/src/components/assistant-ui/tool/fallback-model/index.ts +++ b/apps/desktop/src/components/assistant-ui/tool/fallback-model/index.ts @@ -130,9 +130,7 @@ function readFileDisplayTarget(args: Record, result: Record): string { return ( - firstStringField(args, ['context', 'preview']) || - firstStringField(args, ['command', 'code']) || - contextValue(args) + firstStringField(args, ['context', 'preview']) || firstStringField(args, ['command', 'code']) || contextValue(args) ) } @@ -1389,8 +1387,11 @@ export function buildToolView(part: ToolPart, inlineDiff: string): ToolView { const searchHits = part.toolName === 'web_search' && status !== 'error' ? extractSearchResults(part.result) : undefined + const searchQuery = - part.toolName === 'web_search' ? firstStringField(argsRecord, ['search_term', 'query']) || contextValue(argsRecord) : '' + part.toolName === 'web_search' + ? firstStringField(argsRecord, ['search_term', 'query']) || contextValue(argsRecord) + : '' const resultCount = status === 'error' ? null : toolResultCount(part, argsRecord, resultRecord) diff --git a/apps/desktop/src/components/assistant-ui/tool/fallback.tsx b/apps/desktop/src/components/assistant-ui/tool/fallback.tsx index 0a90c6985607..4a8e2574955c 100644 --- a/apps/desktop/src/components/assistant-ui/tool/fallback.tsx +++ b/apps/desktop/src/components/assistant-ui/tool/fallback.tsx @@ -391,14 +391,14 @@ function ToolEntry({ part }: ToolEntryProps) { const hasExpandableContent = Boolean( view.imageUrl || - view.inlineDiff || - showDetail || - hasSearchHits || - view.stdout || - view.stderr || - view.terminalCommand || - view.terminalExitCode !== undefined || - toolViewMode === 'technical' + view.inlineDiff || + showDetail || + hasSearchHits || + view.stdout || + view.stderr || + view.terminalCommand || + view.terminalExitCode !== undefined || + toolViewMode === 'technical' ) // copyAction reads the uncapped view.detail; clampForDisplay below only bounds @@ -649,7 +649,9 @@ function TerminalTranscript({ command, exitCode }: TerminalTranscriptProps) {
{command && ( - $ + + ${' '} + {command} )} diff --git a/apps/desktop/src/components/notifications.tsx b/apps/desktop/src/components/notifications.tsx index 465e501f54ce..3e38afeb3efa 100644 --- a/apps/desktop/src/components/notifications.tsx +++ b/apps/desktop/src/components/notifications.tsx @@ -215,9 +215,7 @@ function NotificationItem({ notification }: { notification: AppNotification }) { {notification.title && {notification.title}}

{renderMessage(notification.message, accent)}

- {notification.meta && ( -

{notification.meta}

- )} + {notification.meta &&

{notification.meta}

} {hasDetail && } {notification.action && (