From 7c9d05267c550dd6b0db2bdcdecda9d06a73baea Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 07:08:53 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#69939) Co-authored-by: github-actions[bot] --- .../assistant-ui/markdown-text.media.test.tsx | 1 + .../assistant-ui/tool/fallback-model/index.ts | 9 +++++---- .../components/assistant-ui/tool/fallback.tsx | 20 ++++++++++--------- apps/desktop/src/components/notifications.tsx | 4 +--- apps/desktop/src/lib/chat-messages.test.ts | 8 +++----- apps/desktop/src/lib/chat-messages.ts | 5 ++++- apps/desktop/src/store/agent-notices.test.ts | 16 ++++++++++++--- 7 files changed, 38 insertions(+), 25 deletions(-) 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 && (