Skip to content

fix(paths): handle Windows separators and absolute pointers on POSIX - #649

Open
cookerpapa wants to merge 1 commit into
HenryLach:mainfrom
cookerpapa:fix/portable-task-paths
Open

fix(paths): handle Windows separators and absolute pointers on POSIX#649
cookerpapa wants to merge 1 commit into
HenryLach:mainfrom
cookerpapa:fix/portable-task-paths

Conversation

@cookerpapa

Copy link
Copy Markdown

POSIX path.resolve treats backslashes as filename characters. Normalizing afterward prefixes cwd and breaks task marker lookup. Native isAbsolute also misclassifies Windows drive-absolute pointer paths on POSIX.

Normalize task, repo, and worktree separators before resolving paths. Preserve external-task, cross-repo-copy, and archive lookup behavior. Validate pointer paths with Windows-aware absolute-path detection.

This fixes five existing Linux path-test failures found while validating #648. Adds marker fixtures and pointer coverage included in the Linux CI test selection.

Validation:

This branch is based directly on main. Its standalone full suite still encounters the existing template-loading assertion in project-config-loader.test.ts, reproduced on unmodified main and addressed separately by #648.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant