Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#87251)

hermes-seaeye[bot]9c7f92bf93ff
diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/session-info-side-effects.test.tsx b/apps/desktop/src/app/session/hooks/use-message-stream/session-info-side-effects.test.tsx
index 0168a9d00d0..1906efb039e 100644
--- a/apps/desktop/src/app/session/hooks/use-message-stream/session-info-side-effects.test.tsx
+++ b/apps/desktop/src/app/session/hooks/use-message-stream/session-info-side-effects.test.tsx
@@ -154,8 +154,7 @@ describe('session.info settles a turn that produced no assistant payload', () =>
// latching awaitingResponse/busy until app restart — and because
// isTargetSessionBusy reads the per-session busy flag as authoritative,
// submitPrompt and the slash dispatcher then silently refused every send.
- const busyFor = (sessionId: string) =>
- isTargetSessionBusy(Object.fromEntries(sessionStates!), sessionId, false)
+ const busyFor = (sessionId: string) => isTargetSessionBusy(Object.fromEntries(sessionStates!), sessionId, false)
const startTurn = (sessionId: string) =>
act(() => handleEvent!({ payload: {}, session_id: sessionId, type: 'message.start' }))
diff --git a/apps/desktop/src/components/assistant-ui/thread/assistant-message.tsx b/apps/desktop/src/components/assistant-ui/thread/assistant-message.tsx
index 1fcfabfbb3b..55b49e6bd16 100644
--- a/apps/desktop/src/components/assistant-ui/thread/assistant-message.tsx
+++ b/apps/desktop/src/components/assistant-ui/thread/assistant-message.tsx
@@ -377,31 +377,31 @@ const AssistantFooter: FC<MessageActionProps & { durationS?: number }> = ({ dura
const { t } = useI18n()
return (
- <div className="flex min-h-6 flex-col items-end gap-1 pr-(--message-text-indent) pl-(--message-text-indent)">
- {durationS !== undefined && (
- <span
- className="select-none px-0.5 text-[0.6875rem] leading-5 tabular-nums text-muted-foreground"
- data-slot="aui_turn-duration"
- title={t.assistant.thread.turnDuration(formatElapsed(durationS))}
+ <div className="flex min-h-6 flex-col items-end gap-1 pr-(--message-text-indent) pl-(--message-text-indent)">
+ {durationS !== undefined && (
+ <span
+ className="select-none px-0.5 text-[0.6875rem] leading-5 tabular-nums text-muted-foreground"
+ data-slot="aui_turn-duration"
+ title={t.assistant.thread.turnDuration(formatElapsed(durationS))}
+ >
+ ⏱ {formatElapsed(durationS)}
+ </span>
+ )}
+ <BranchPickerPrimitive.Root
+ className="inline-flex h-6 items-center gap-1 text-xs text-muted-foreground"
+ hideWhenSingleBranch
>
- ⏱ {formatElapsed(durationS)}
- </span>
- )}
- <BranchPickerPrimitive.Root
- className="inline-flex h-6 items-center gap-1 text-xs text-muted-foreground"
- hideWhenSingleBranch
- >
- <BranchPickerPrimitive.Previous className="grid size-6 place-items-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:cursor-default disabled:opacity-35">
- <Codicon name="chevron-left" size="0.875rem" />
- </BranchPickerPrimitive.Previous>
- <span className="tabular-nums">
- <BranchPickerPrimitive.Number /> / <BranchPickerPrimitive.Count />
- </span>
- <BranchPickerPrimitive.Next className="grid size-6 place-items-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:cursor-default disabled:opacity-35">
- <Codicon name="chevron-right" size="0.875rem" />
- </BranchPickerPrimitive.Next>
- </BranchPickerPrimitive.Root>
- <AssistantActionBar {...props} />
- </div>
+ <BranchPickerPrimitive.Previous className="grid size-6 place-items-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:cursor-default disabled:opacity-35">
+ <Codicon name="chevron-left" size="0.875rem" />
+ </BranchPickerPrimitive.Previous>
+ <span className="tabular-nums">
+ <BranchPickerPrimitive.Number /> / <BranchPickerPrimitive.Count />
+ </span>
+ <BranchPickerPrimitive.Next className="grid size-6 place-items-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:cursor-default disabled:opacity-35">
+ <Codicon name="chevron-right" size="0.875rem" />
+ </BranchPickerPrimitive.Next>
+ </BranchPickerPrimitive.Root>
+ <AssistantActionBar {...props} />
+ </div>
)
}