From 9f74589d09f08aa29778f4eb46d18c0869558fc1 Mon Sep 17 00:00:00 2001 From: CHANGXUBO Date: Wed, 18 Feb 2026 10:06:21 +0800 Subject: [PATCH] fix: HTML artifact preview renders blank in preview mode (#876) The condition guarding ArtifactFilePreview only allowed markdown files through, which prevented HTML files from reaching the preview component. Added `language === "html"` to the condition so HTML artifacts render correctly in preview mode. Fixes #873 Co-authored-by: Claude --- .../components/workspace/artifacts/artifact-file-detail.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx index e93f99f..ba62a14 100644 --- a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx +++ b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx @@ -234,8 +234,7 @@ export function ArtifactFileDetail({ {previewable && viewMode === "preview" && - language === "markdown" && - content && ( + (language === "markdown" || language === "html") && (