fix(core): sandbox path resolution in Plan Mode to prevent hallucinations and traversal

This commit is contained in:
A.K.M. Adib
2026-03-16 16:56:09 -04:00
parent 8bad5823a9
commit 1668e0e1ce
21 changed files with 101 additions and 108 deletions
@@ -80,7 +80,6 @@ function usePlanContent(planPath: string, config: Config): PlanContentState {
const pathError = await validatePlanPath(
planPath,
config.storage.getPlansDir(),
config.getTargetDir(),
);
if (ignore) return;
if (pathError) {