fix(FN-XXXX): stop engine creating nested .fusion/.fusion dir

PluginStore expects a project-root path and appends `.fusion` itself, but the in-process runtime was handing it the already-resolved `.fusion` directory — producing a spurious `.fusion/.fusion/fusion.db` on every engine startup.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-05-01 18:22:49 -07:00
parent f6a02ffd5c
commit 2f9364460a
2 changed files with 6 additions and 1 deletions

View File

@@ -170,7 +170,7 @@ export class InProcessRuntime
this.messageStore = new MessageStoreClass(this.taskStore.getDatabase());
// 2. Initialize Plugin system (PluginStore + PluginLoader + PluginRunner)
this.pluginStore = new PluginStoreClass(this.taskStore.getFusionDir());
this.pluginStore = new PluginStoreClass(this.config.workingDirectory);
await this.pluginStore.init();
this.pluginLoader = new PluginLoaderClass({