diff --git a/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx b/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx index 1619288b494c1..cc987e9559a12 100644 --- a/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx +++ b/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx @@ -4,7 +4,13 @@ import { afterEach, describe, expect, it, vi } from 'vitest' import { $clarifyRequests } from '@/store/clarify' import type { ComposerAttachment } from '@/store/composer' import { $gateway } from '@/store/gateway' -import { clearAllPrompts, hasBlockingPromptRequest, setApprovalRequest, setSecretRequest, setSudoRequest } from '@/store/prompts' +import { + clearAllPrompts, + hasBlockingPromptRequest, + setApprovalRequest, + setSecretRequest, + setSudoRequest +} from '@/store/prompts' import { useComposerSubmit } from './use-composer-submit' diff --git a/apps/desktop/src/app/chat/composer/suggestion-pills.tsx b/apps/desktop/src/app/chat/composer/suggestion-pills.tsx index 6f87b40311043..00f9c0c21a345 100644 --- a/apps/desktop/src/app/chat/composer/suggestion-pills.tsx +++ b/apps/desktop/src/app/chat/composer/suggestion-pills.tsx @@ -45,7 +45,8 @@ export function SuggestionPills({ sessionId }: { sessionId: null | string }) { const brand = suggestion.brand ? brandFor(suggestion.brand) : null const phase = phases[key] ?? 'idle' - const label = phase === 'working' ? suggestion.workingLabel : phase === 'done' ? suggestion.doneLabel : suggestion.label + const label = + phase === 'working' ? suggestion.workingLabel : phase === 'done' ? suggestion.doneLabel : suggestion.label const tip = phase === 'working' ? suggestion.workingTip : phase === 'done' ? suggestion.doneTip : suggestion.tip const invoke = async () => { diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event.ts b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event.ts index c3d6bb9c86279..6d0e7f8cbf57d 100644 --- a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event.ts +++ b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event.ts @@ -983,7 +983,11 @@ export function useGatewayEventHandler(deps: GatewayEventDeps) { setMcpSetupRequest({ action, reason, requestId, server, sessionId: sessionId ?? null }) if (sessionId) { - upsertToolCall(sessionId, { args: { action, reason, server }, name: 'setup_mcp', tool_id: requestId }, 'running') + upsertToolCall( + sessionId, + { args: { action, reason, server }, name: 'setup_mcp', tool_id: requestId }, + 'running' + ) updateSessionState(sessionId, state => ({ ...state, needsInput: true })) } diff --git a/apps/desktop/src/components/assistant-ui/mcp-setup-tool.tsx b/apps/desktop/src/components/assistant-ui/mcp-setup-tool.tsx index 2af772cd70429..e3b6abd65d6b0 100644 --- a/apps/desktop/src/components/assistant-ui/mcp-setup-tool.tsx +++ b/apps/desktop/src/components/assistant-ui/mcp-setup-tool.tsx @@ -154,9 +154,7 @@ function McpSetupSettled({ args, result }: ToolCallMessagePartProps) { } > {line} - {ok && toolCount > 0 && ( - {copy.toolCount(toolCount)} - )} + {ok && toolCount > 0 && {copy.toolCount(toolCount)}} {!ok && !neutral && fromResult.detail ? (

{fromResult.detail}

) : null} diff --git a/apps/desktop/src/store/clarify.ts b/apps/desktop/src/store/clarify.ts index f98d6e4036861..6dfc275e758aa 100644 --- a/apps/desktop/src/store/clarify.ts +++ b/apps/desktop/src/store/clarify.ts @@ -34,8 +34,7 @@ export function normalizeChoices(choices: unknown): string[] { } return choices.filter( - (c): c is string => - typeof c === 'string' && c.trim().length > 0 && bareChoice(c).length <= 200 && !c.includes('\n') + (c): c is string => typeof c === 'string' && c.trim().length > 0 && bareChoice(c).length <= 200 && !c.includes('\n') ) } diff --git a/apps/desktop/src/store/composer-suggestions.ts b/apps/desktop/src/store/composer-suggestions.ts index 6d13110fe7fff..d4247604f4d05 100644 --- a/apps/desktop/src/store/composer-suggestions.ts +++ b/apps/desktop/src/store/composer-suggestions.ts @@ -123,7 +123,11 @@ const eventOfferings = new Map>() /** Offer suggestions from an event provider (session state, tool results, * connection events…). Replaces that provider's previous offerings for the * session; providers withdraw by offering []. */ -export function offerSuggestions(sessionId: string | null | undefined, provider: string, suggestions: ComposerSuggestion[]): void { +export function offerSuggestions( + sessionId: string | null | undefined, + provider: string, + suggestions: ComposerSuggestion[] +): void { const key = keyFor(sessionId) let providers = eventOfferings.get(key) diff --git a/apps/desktop/src/store/suggestion-providers/mcp.test.ts b/apps/desktop/src/store/suggestion-providers/mcp.test.ts index 614f29b03808e..9de2ad08b0c93 100644 --- a/apps/desktop/src/store/suggestion-providers/mcp.test.ts +++ b/apps/desktop/src/store/suggestion-providers/mcp.test.ts @@ -10,9 +10,7 @@ const INDEX = [ describe('matchSuggestions', () => { it('matches a whole word and reports the keyword that hit', () => { - expect(matchSuggestions('can you check the linear board', INDEX)).toEqual([ - { keyword: 'linear', server: 'linear' } - ]) + expect(matchSuggestions('can you check the linear board', INDEX)).toEqual([{ keyword: 'linear', server: 'linear' }]) }) it('does not match inside other words', () => { diff --git a/apps/desktop/src/store/suggestion-providers/mcp.ts b/apps/desktop/src/store/suggestion-providers/mcp.ts index 2be7bc15952b3..7048aed84fb32 100644 --- a/apps/desktop/src/store/suggestion-providers/mcp.ts +++ b/apps/desktop/src/store/suggestion-providers/mcp.ts @@ -1,12 +1,16 @@ -import { addMcpServer, authMcpServer, cancelMcpOAuthFlow, getMcpOAuthFlow, listMcpServers, removeMcpServer } from '@/hermes' +import { + addMcpServer, + authMcpServer, + cancelMcpOAuthFlow, + getMcpOAuthFlow, + listMcpServers, + removeMcpServer +} from '@/hermes' import { translateNow } from '@/i18n' import { completeMcpDesktopOAuth, McpOAuthCancelled } from '@/lib/mcp-dashboard-oauth' import { directoryEntry, MCP_DIRECTORY } from '@/lib/mcp-directory' import { prettyName } from '@/lib/text' -import { - type ComposerSuggestion, - registerDraftProvider -} from '@/store/composer-suggestions' +import { type ComposerSuggestion, registerDraftProvider } from '@/store/composer-suggestions' import { $gateway } from '@/store/gateway' import { notifyError } from '@/store/notifications'