fix(memory): use async fs APIs to satisfy maintainability gate

This commit is contained in:
Tam Nhu Tran committed 2026-02-23 23:29:22 +07:00
1 parent e2623e632c
commit c6c44d0341
5 files changed
+97 -70

No files matched your search

+2 -2
View File
@@ -26,7 +26,7 @@ class InstanceManager {
/**
* Ensure instance exists for profile (lazy init only)
*/
ensureInstance(profileName: string): string {
async ensureInstance(profileName: string): Promise<string> {
const instancePath = this.getInstancePath(profileName);
// Lazy initialization
@@ -38,7 +38,7 @@ class InstanceManager {
this.validateInstance(instancePath);
// Keep project memory shared across instances.
this.sharedManager.syncProjectMemories(instancePath);
await this.sharedManager.syncProjectMemories(instancePath);
return instancePath;
}