diff --git a/apps/playground/src/components/ai-elements/tool.tsx b/apps/playground/src/components/ai-elements/tool.tsx index 53200df8..d9730054 100644 --- a/apps/playground/src/components/ai-elements/tool.tsx +++ b/apps/playground/src/components/ai-elements/tool.tsx @@ -35,6 +35,8 @@ export type ToolPart = ToolUIPart | DynamicToolUIPart; export type ToolHeaderProps = { title?: string; className?: string; + /** The run ended before this call finished; show that instead of its live state. */ + stopped?: boolean; } & ( | { type: ToolUIPart["type"]; state: ToolUIPart["state"]; toolName?: never } | { @@ -86,6 +88,7 @@ export const ToolHeader = ({ title, type, state, + stopped, toolName, ...props }: ToolHeaderProps) => { @@ -103,7 +106,14 @@ export const ToolHeader = ({
{generating - ? "Drawing your flowchart…" - : "This version needs a few changes. Ask Sketchi to revise it or try another flow."} + ? "Drawing your diagram…" + : "This version needs a few changes. Ask Sketchi to revise it or try another request."}
{ghostLabels.length > 0 ? (