Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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' }))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)
}
Loading