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