fix(core): ensure edit and write-file tools use storage.getPlansDir

This fixes test failures introduced during conflict resolution by strictly calling storage.getPlansDir as per the new config architecture.
This commit is contained in:
Mahima Shanware
2026-04-10 18:31:32 +00:00
parent c57123cd81
commit 736690fd35
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1058,7 +1058,7 @@ export class EditTool
try {
resolvedPath = resolveAndValidatePlanPath(
params.file_path,
this.config.getPlansDir(),
this.config.storage.getPlansDir(),
);
} catch (err) {
return err instanceof Error ? err.message : String(err);
+1 -1
View File
@@ -504,7 +504,7 @@ export class WriteFileTool
try {
resolvedPath = resolveAndValidatePlanPath(
filePath,
this.config.getPlansDir(),
this.config.storage.getPlansDir(),
);
} catch (err) {
return err instanceof Error ? err.message : String(err);