fix(web): clean up restored chat transcripts and optimize chat UI (#2605)

Filter raw tool messages from session history and avoid duplicate summaries for visible message-tool output. Preserve final assistant replies after tool delivery and add coverage for visible transcript counts.

Also refine the chat UI with collapsible reasoning blocks, send shortcut hints, command-style user messages, stable scroll gutters, and updated i18n strings.
This commit is contained in:
wenjie authored and GitHub committed 2026-04-21 11:52:58 +08:00
1 parent 329e68e017
commit dcb4b67e00
11 files changed
+233 -133

No files matched your search

+10 -2
View File
@@ -30,10 +30,13 @@ function TooltipTrigger({
function TooltipContent({
className,
arrowClassName,
sideOffset = 0,
children,
...props
}: React.ComponentProps<typeof TooltipPrimitive.Content>) {
}: React.ComponentProps<typeof TooltipPrimitive.Content> & {
arrowClassName?: string
}) {
return (
<TooltipPrimitive.Portal>
<TooltipPrimitive.Content
@@ -46,7 +49,12 @@ function TooltipContent({
{...props}
>
{children}
<TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" />
<TooltipPrimitive.Arrow
className={cn(
"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground",
arrowClassName
)}
/>
</TooltipPrimitive.Content>
</TooltipPrimitive.Portal>
)