DotAI: addToHistory -> setHistory

This commit is contained in:
Alex Gleason committed 2025-08-24 16:53:48 -05:00
1 parent 479df7cdad
commit 5350506a89
4 files changed
+113 -21

No files matched your search

+7
View File
@@ -38,6 +38,13 @@ export class ProjectsManager {
async createProject(name: string): Promise<Project> {
const project = await this.cloneProject(name, GIT_TEMPLATE_URL);
try {
await this.fs.mkdir(this.dir + `/${name}/.ai/history`, { recursive: true });
} catch {
// Directory might already exist
}
return project;
}