@@ -77,7 +89,8 @@ export const Artifact = memo(({ messageId }: ArtifactProps) => {
>
- {artifact?.title}
+ {/* Use the dynamic title here */}
+ {dynamicTitle}
Click to open Workbench
@@ -112,6 +125,7 @@ export const Artifact = memo(({ messageId }: ArtifactProps) => {
)}
+ {/* This status text remains the same */}
{allActionFinished
? artifact.id === 'restored-project-setup'
? 'Restore files from snapshot'
diff --git a/app/components/chat/Chat.client.tsx b/app/components/chat/Chat.client.tsx
index 8786b222..c5ff7dbb 100644
--- a/app/components/chat/Chat.client.tsx
+++ b/app/components/chat/Chat.client.tsx
@@ -316,14 +316,14 @@ export const ChatImpl = memo(
setFakeLoading(true);
if (autoSelectTemplate) {
- const { template } = await selectStarterTemplate({
+ const { template, title } = await selectStarterTemplate({
message: messageContent,
model,
provider,
});
if (template !== 'blank') {
- const temResp = await getTemplates(template).catch((e) => {
+ const temResp = await getTemplates(template, title).catch((e) => {
if (e.message.includes('rate limit')) {
toast.warning('Rate limit exceeded. Skipping starter template\n Continuing with blank template');
} else {
diff --git a/app/utils/selectStarterTemplate.ts b/app/utils/selectStarterTemplate.ts
index 29fe6cbb..2e725e4a 100644
--- a/app/utils/selectStarterTemplate.ts
+++ b/app/utils/selectStarterTemplate.ts
@@ -129,7 +129,7 @@ const getGitHubRepoContent = async (repoName: string): Promise<{ name: string; p
}
};
-export async function getTemplates(templateName: string) {
+export async function getTemplates(templateName: string, title?: string) {
const template = STARTER_TEMPLATES.find((t) => t.name == templateName);
if (!template) {
@@ -183,7 +183,7 @@ export async function getTemplates(templateName: string) {
const assistantMessage = `
Bolt is initializing your project with the required files using the ${template.name} template.
-
+
${filesToImport.files
.map(
(file) =>