fix: issue with alternate message when importing from folder and git (#1216)
This commit is contained in:
@@ -38,7 +38,7 @@ export const createChatFromFolder = async (
|
||||
role: 'assistant',
|
||||
content: `I've imported the contents of the "${folderName}" folder.${binaryFilesMessage}
|
||||
|
||||
<boltArtifact id="imported-files" title="Imported Files">
|
||||
<boltArtifact id="imported-files" title="Imported Files" type="bundled" >
|
||||
${fileArtifacts
|
||||
.map(
|
||||
(file) => `<boltAction type="file" filePath="${file.path}">
|
||||
@@ -61,6 +61,11 @@ ${escapeBoltTags(file.content)}
|
||||
const messages = [userMessage, filesMessage];
|
||||
|
||||
if (commandsMessage) {
|
||||
messages.push({
|
||||
role: 'user',
|
||||
id: generateId(),
|
||||
content: 'Setup the codebase and Start the application',
|
||||
});
|
||||
messages.push(commandsMessage);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user