diff --git a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx
index c7d2495..0539d18 100644
--- a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx
+++ b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx
@@ -81,8 +81,8 @@ export function ArtifactFileDetail({
return checkCodeFile(filepath);
}, [filepath, isWriteFile, isSkillFile]);
const isSupportPreview = useMemo(() => {
- return (language === "html" && !isWriteFile) || language === "markdown";
- }, [isWriteFile, language]);
+ return language === "html" || language === "markdown";
+ }, [language]);
const { content } = useArtifactContent({
threadId,
filepath: filepathFromProps,
@@ -239,8 +239,6 @@ export function ArtifactFileDetail({
viewMode === "preview" &&
(language === "markdown" || language === "html") && (