GenAI tweaks (#22756)

* add DictAsYamlField for genai provider and runtime options

* regenerate config translations

* chat tweaks

- add page title
- scroll if near bottom
- add tool call group that dynamically updates as tool calls are made
- add bouncing loading indicator and other UI polish

* tool call grouping
This commit is contained in:
Josh Hawkins
2026-04-04 06:54:51 -06:00
committed by GitHub
parent 9cb76d0bd9
commit e24eb676a9
13 changed files with 386 additions and 132 deletions
+4 -4
View File
@@ -7,7 +7,7 @@ import {
} from "@/components/ui/collapsible";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
import { ChevronDown, ChevronRight } from "lucide-react";
import { LuChevronDown, LuChevronRight } from "react-icons/lu";
type ToolCallBubbleProps = {
name: string;
@@ -34,7 +34,7 @@ export function ToolCallBubble({
return (
<div
className={cn(
"rounded-lg px-3 py-2",
"rounded-2xl px-3 py-2",
isLeft
? "self-start bg-muted"
: "self-end bg-primary text-primary-foreground",
@@ -51,9 +51,9 @@ export function ToolCallBubble({
)}
>
{open ? (
<ChevronDown size={12} className="shrink-0" />
<LuChevronDown className="size-3 shrink-0" />
) : (
<ChevronRight size={12} className="shrink-0" />
<LuChevronRight className="size-3 shrink-0" />
)}
<span className="break-words font-medium">
{isLeft ? t("call") : t("result")} {normalizedName}