mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-26 19:53:18 -07:00
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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user