fix: auto show artifacts when opening a conversation

This commit is contained in:
Aslan Vatsaev 2025-10-10 13:47:33 +02:00
parent d13a35ab96
commit a9c4e4b422

View file

@ -176,7 +176,7 @@
{onSourceClick}
{onTaskClick}
{onSave}
onUpdate={(token) => {
onUpdate={async (token) => {
const { lang, text: code } = token;
if (
@ -185,10 +185,9 @@
!$mobile &&
$chatId
) {
setTimeout(() => {
showArtifacts.set(true);
showControls.set(true);
});
await tick();
showArtifacts.set(true);
showControls.set(true);
}
}}
onPreview={async (value) => {