Skip AI rules generation if it already exists upon import (#204)
This commit is contained in:
@@ -100,11 +100,13 @@ export function ImportAppDialog({ isOpen, onClose }: ImportAppDialogProps) {
|
||||
onClose();
|
||||
|
||||
navigate({ to: "/chat", search: { id: result.chatId } });
|
||||
if (!hasAiRules) {
|
||||
streamMessage({
|
||||
prompt:
|
||||
"Generate an AI_RULES.md file for this app. Describe the tech stack in 5-10 bullet points and describe clear rules about what libraries to use for what.",
|
||||
chatId: result.chatId,
|
||||
});
|
||||
}
|
||||
setSelectedAppId(result.appId);
|
||||
await refreshApps();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user