Skip to content
This repository was archived by the owner on Aug 25, 2026. It is now read-only.

fix(kaos): resolve Git Bash POSIX paths for file tools on Windows - #74

Merged
YaseenHQ merged 2 commits into
mainfrom
fix/upstream-batch-d
Aug 23, 2026
Merged

YaseenHQ merged 2 commits into
mainfrom
fix/upstream-batch-d

Conversation

@YaseenHQ

Copy link
Copy Markdown
Owner

Ports upstream 30e7f62d2 (MoonshotAI#2200). A model-supplied POSIX path like /c/Users/you/project is now translated to its win32 form before canonicalization and the workspace check, so file tools stop rejecting paths the shell itself accepts. Drive-letter forms translate lexically, root-relative paths go through cygpath -w with per-segment caching, and every failure mode falls back to the previous behaviour.

Relevant now that Windows is actually tested here.

Adapted: upstream routes the bridge through a src/runtime abstraction this fork doesn't have — the commit's runtime files import a ./runtime module that isn't part of it, and src/runtime/ doesn't exist on our main at all. Those are left out; the bridge, the path-access checks and the Bash tool wiring all apply. bashTool keeps our spawn signature and isWindowsBash gate, swapping only the conversion from our windowsPathToPosixPath to the bridge's toShellPath.

Three more skipped this round, all for features we don't ship:

  • c212ae971 (MCP launch targets in the trust prompt) — no workspace trust prompt here.
  • c9c34ae5a (pasted videos to the daemon file store) — no media staging leases here.
  • 98ebda840 (todo panel reverts on undo) — needs SDK exports SessionTodoItem and getLiveSessionById we don't have.

Tested: full suite 17,221 passed / 0 failures (up 87 — the bridge tests landed); typecheck, lint, sherif, release:check and build clean.

wszqkzqk and others added 2 commits August 23, 2026 00:32
…onshotAI#2200)

Add a shell path bridge that translates between win32 paths and the
MSYS2/Git Bash path dialect. File tools resolve model-supplied paths
through it before canonicalization and workspace checks: drive-letter
forms translate lexically, root-relative paths resolve via cygpath -w
with per-segment caching, and every failure mode falls back to the
previous behavior.

Fixes MoonshotAI#2199

(cherry picked from commit 30e7f62)
Upstream routes the bridge through a src/runtime abstraction this fork
does not have -- the commit's runtime files depend on a ./runtime module
that is not part of it. Those are left out; the bridge itself, the
path-access checks and the Bash tool wiring all apply.

bashTool keeps this fork's spawn signature and its isWindowsBash gate,
swapping only the path conversion from windowsPathToPosixPath to the
bridge's toShellPath.
@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 983d8d91-6da0-490c-9899-0a0fba9321d0


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@YaseenHQ
YaseenHQ merged commit 741855c into main Aug 23, 2026
16 checks passed
@YaseenHQ
YaseenHQ deleted the fix/upstream-batch-d branch August 23, 2026 04:42
@github-actions github-actions Bot mentioned this pull request Aug 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants