fix(ai): match target root by basename in _apply_plan() #77

Merged
claude-code merged 1 commit from fix/issue-76-apply-plan-root-match into main 2026-04-12 20:39:16 -06:00

1 commit

Author SHA1 Message Date
Jeff Smith
79bb10b9dc fix(ai): match target root dir by basename in _apply_plan() (#76)
The planner sees basename(target) in the tree output (e.g. "luminos_lib")
and uses that as the path in its plan. But _apply_plan() mapped the
target root to "." via os.path.relpath(), so the planner's path never
matched and the allocation was silently dropped.

Fix: register both "." and basename(target) as aliases for the target
root in the lookup table. Also log a warning when plan paths don't
match any known directory, so future mismatches are visible.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 20:38:55 -06:00