diff --git a/app/components/chat/Artifact.tsx b/app/components/chat/Artifact.tsx index 537a6a63..cc0f3010 100644 --- a/app/components/chat/Artifact.tsx +++ b/app/components/chat/Artifact.tsx @@ -54,13 +54,15 @@ export const Artifact = memo(({ messageId }: ArtifactProps) => { } if (actions.length !== 0 && artifact.type === 'bundled') { - const finished = !actions.find((action) => action.status !== 'complete'); + const finished = !actions.find( + (action) => action.status !== 'complete' && !(action.type === 'start' && action.status === 'running'), + ); if (allActionFinished !== finished) { setAllActionFinished(finished); } } - }, [actions]); + }, [actions, artifact.type, allActionFinished]); return ( <> diff --git a/app/lib/persistence/useChatHistory.ts b/app/lib/persistence/useChatHistory.ts index dad3da7c..77540a6d 100644 --- a/app/lib/persistence/useChatHistory.ts +++ b/app/lib/persistence/useChatHistory.ts @@ -131,7 +131,7 @@ export function useChatHistory() { // Combine followup message and the artifact with files and command actions content: `Bolt Restored your chat from a snapshot. You can revert this message to load the full chat history. - + ${Object.entries(snapshot?.files || {}) .map(([key, value]) => { if (value?.type === 'file') {