feat(artifacts): render agent HTML files inline in the session chat

This commit is contained in:
Chris Scott authored and Chris Scott committed 2026-10-12 16:43:04 -04:00
1 parent 377e3c2784
commit f7b2ffb865
17 files changed
+579 -10

No files matched your search

@@ -1,5 +1,5 @@
import { memo } from 'react'
import type { SessionMessageAssistant } from '@opencode-manager/shared/opencode'
import { readShowArtifactCall, type SessionMessageAssistant } from '@opencode-manager/shared/opencode'
import { TextPart } from './TextPart'
import { ToolCallPart } from './ToolCallPart'
import { useSettings } from '@/hooks/useSettings'
@@ -40,7 +40,7 @@ export const MessagePart = memo(function MessagePart({ part, messageID, director
</details>
)
case 'tool':
if (simpleChatMode && part.name !== 'subagent') return null
if (simpleChatMode && part.name !== 'subagent' && !readShowArtifactCall(part)) return null
return (
<ToolCallPart
part={part}