You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "orangeCatDeveloper (via GitHub)" <gi...@apache.org> on 2026/08/26 09:23:35 UTC
[PR] fix(cli): accept Windows home paths in /move [maka]
orangeCatDeveloper opened a new pull request, #3907:
URL: https://github.com/apache/maka/pull/3907
Fixes #3906
Windows users cannot move a Session with a native home-relative path such as `~\Documents`; the CLI reports a nonexistent literal `~` directory beneath the current working directory.
`resolveMoveCwd()` recognizes `~` and `~/`, but lets the Windows `~\` form fall through to ordinary relative-path resolution. The fix centralizes home expansion and accepts either separator on Windows while preserving the existing POSIX interpretation of backslashes.
The change is limited to typed `/move` and relocation paths; absolute paths, ordinary relative paths, and POSIX home expansion are unchanged.
```text
Before
$ node -e "resolve the current fallback with node:path.win32"
D:\workspace\~\Documents
After
$ node --test packages/cli/dist/__tests__/session-driver-policy.test.js
✔ expands home-relative move paths with platform separators
ℹ tests 1
ℹ pass 1
ℹ fail 0
```
Verification: `npx biome check` on both changed files and `npm --workspace maka-agent run typecheck` pass. The full compiled CLI suite passes 478/479 tests; its unrelated macOS `/var` versus `/private/var` failure is tracked by #3870.
## AI use
- [ ] No generative tool made a substantive contribution
- [x] Generative tooling made a substantive contribution
Tool(s) and scope: OpenAI Codex investigated the defect, implemented the fix and regression test, and ran verification. The human contributor remains responsible for the contribution.
## Checklist
- [x] Tests cover the change and fail without it
- [x] Lint, format, typecheck and the affected suites pass locally
Does this PR entail a change in behavior?
- [x] Yes — described above
- [ ] No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(cli): accept Windows home paths in /move [maka]
Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han merged PR #3907:
URL: https://github.com/apache/maka/pull/3907
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org