From 9d7740a82f2ec2649c74d95154e91f63c376b3ef Mon Sep 17 00:00:00 2001 From: Wasim Yousef Said Date: Mon, 15 Jun 2026 13:38:39 +0200 Subject: [PATCH] Rename chat artifacts copy to canvas (#6298) Co-authored-by: Lee Jackson <130007945+Imagineer99@users.noreply.github.com> --- studio/backend/core/inference/tools.py | 14 ++++++------- studio/backend/routes/inference.py | 12 +++++------ .../backend/tests/test_anthropic_messages.py | 4 ++-- .../backend/tests/test_llama_cpp_tool_loop.py | 20 +++++++++---------- .../tests/test_safetensors_tool_loop.py | 8 ++++---- .../tests/test_tool_loop_controller.py | 2 +- .../components/assistant-ui/markdown-text.tsx | 6 +++--- .../components/assistant-ui/tool-group.tsx | 2 +- .../assistant-ui/tool-ui-render-html.tsx | 12 +++++------ .../src/features/chat/api/chat-adapter.ts | 12 +++++------ .../features/chat/artifacts/artifact-card.tsx | 2 +- .../chat/artifacts/artifact-surface.tsx | 20 +++++++++---------- .../features/chat/artifacts/html-frame.tsx | 4 ++-- .../src/features/chat/artifacts/types.ts | 4 ++-- .../frontend/src/features/chat/chat-page.tsx | 2 +- studio/frontend/src/i18n/locales/en.ts | 8 ++++---- 16 files changed, 66 insertions(+), 66 deletions(-) diff --git a/studio/backend/core/inference/tools.py b/studio/backend/core/inference/tools.py index b29a221ee7..6960310018 100644 --- a/studio/backend/core/inference/tools.py +++ b/studio/backend/core/inference/tools.py @@ -773,10 +773,10 @@ RENDER_HTML_TOOL = { "function": { "name": "render_html", "description": ( - "Render a self-contained HTML/CSS/JavaScript artifact for the user. " + "Render a self-contained HTML/CSS/JavaScript canvas for the user. " "Call this at most once per assistant response unless the user " "explicitly asks for changes in that response. Future user requests " - "for new artifacts may call render_html once. Put the entire document " + "for new canvases may call render_html once. Put the entire document " "in code, including any CSS in