Skip to content

fix(git): enable Windows long paths for worktree creation (local, sparse, and SSH hosts) - #15866

Merged
nwparker merged 2 commits into
mainfrom
nwparker/windows-worktree-longpaths
Aug 23, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/windows-worktree-longpaths

Conversation

@nwparker

@nwparker nwparker commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​271 $\color{#cf222e}{\Huge{\mathbf{−}}}$​26 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​245
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​49 $\color{#cf222e}{\Huge{\mathbf{−}}}$​7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​42

Supersedes #15786 by @hwantage — carried over so it can run full CI (fork PRs only run track-community-pr in this repo). Original authorship is preserved in the first commit; the second commit adds the maintainer fixes described below.

ELI5

Windows refuses to create files whose full path is longer than 260 characters unless a program explicitly asks for the long-path behavior. Orca creates worktrees in nested directories, so a repo with deep folder names blows past that limit and git worktree add dies with "Filename too long". Git has a switch for this (core.longpaths), and we now flip it for just the commands Orca runs — not by editing anyone's Git config — on the Windows worktree-creation paths Orca controls end to end: normal local creation, local sparse creation, and plain (non-sparse) creation on a remote Windows SSH host. Sparse creation over SSH is not covered — see "Known limitations" below.

What Changed

  • New src/shared/windows-long-path-git-args.ts: returns ['-c', 'core.longpaths=true'] for a Windows cwd, [] otherwise. Platform is an injectable parameter (matching isWindowsLongPathWorktreeRemovalError and isWslLinkedWorktreeGitRoutingCandidate).
  • src/main/git/worktree.ts
    • performAddWorktree prefixes the worktree add argv (this is @hwantage's original fix, refactored onto the shared helper).
    • addSparseWorktree now also prefixes sparse-checkout set and checkout <branch>.
  • src/relay/git-handler-worktree-ops.ts: addWorktreeOp takes an injectable platform (defaulting to the relay host's process.platform) and prefixes both argv branches. The hardcoded args.splice(3, 0, '--no-checkout') is now offset by the prefix length.
  • Tests: new unit tests for the helper, Windows/non-Windows/WSL-UNC cases for local creation, a sparse-creation regression test, and Windows-host relay cases including one that pins --no-checkout position.

Why

Root cause: Git for Windows aborts a checkout whose path exceeds MAX_PATH with "Filename too long" unless core.longpaths is enabled. Orca never set it.

Three things needed fixing beyond the original one-liner:

  1. Sparse worktrees were still broken. addSparseWorktree calls addWorktree with noCheckout=true, so the flag decorated a worktree add --no-checkout that writes zero files. The commands that actually materialize the tree — sparse-checkout set and checkout <branch> — ran without it. Worse, that failure happens after created = true, so it fell into the rollback path and removed the worktree, presenting as a mysterious transient create failure.
  2. SSH hosts were never covered. Remote creation goes through ssh-git-provider.addWorktree → relay git.addWorktree → addWorktreeOp, which builds its own argv. worktree.ts carries an explicit "SSH parity: relay's addWorktreeOp mirrors this — change both in lockstep" comment, and the relay demonstrably supports Windows hosts (isWindowsAbsolutePath in the same file). The client's process.platform is also the wrong process to ask here: only the execution host's OS matters.
  3. !options.wslDistro is not the routing predicate. resolveGitCommand can return native host git for a WSL-linked worktree with a C:\... cwd even when wslDistro is set (runner.ts:446-449) — suppressing the flag in a genuinely MAX_PATH-prone case. Conversely a \\wsl.localhost\... cwd routes to WSL git even with wslDistro undefined. The predicate is now the cwd: apply on win32 unless the path is a WSL UNC path.

Scope is deliberately command-level. git -c key=value applies to that invocation only — never --global, --system, or --local — so no user or repo config is mutated. Both -c and core.longpaths predate Git 1.9, well under the repo's 2.25 baseline, so no GitCapabilityCache entry or fallback is needed; a non-Windows Git parses and ignores the key (verified against Git 2.44 locally).

Known limitations / follow-ups

  • Sparse creation over SSH is not covered. createRemoteWorktree materializes the sparse tree with provider.exec(['sparse-checkout', 'init', '--cone']), provider.exec(['sparse-checkout', 'set', ...]) and provider.exec(['checkout', <branch>]) (src/main/ipc/worktree-remote.ts:1780-1782). Those go through the relay's generic git.exec RPC, which (a) rejects any global option before the subcommand (git-exec-validator.ts:154-162, "Global git flags before the subcommand are not allowed") and (b) does not allowlist sparse-checkout or checkout at all (ALLOWED_GIT_SUBCOMMANDS, git-exec-validator.ts:17-33). Prefixing that argv would therefore not just fail to help, it would be rejected — covering it needs a narrow relay RPC (like the existing git.addWorktree), which is a security-reviewable change well beyond this PR's scope. Note this is not a regression from this PR: the relay has no sparse-checkout support today at all, so the remote sparse path is already blocked by the allowlist before MAX_PATH ever comes up.
  • Worktree root paths above ~215 chars still fail on Windows, with or without this flag. Verified on real hardware (Git 2.55.0.windows.3): core.longpaths=true clears the "Filename too long" checkout error but Git then dies with fatal: '$GIT_DIR' too big — setup_explicit_git_dir() hard-checks $GIT_DIR (<worktree>/.git) against PATH_MAX - 40, and MinGW's PATH_MAX is 260. Measured cutoff: root length 215 succeeds, 216 fails. Not a regression (a 230-char root fails pre-fix too), and not fixable from Orca — it needs an upstream Git change. This fix targets the common shape instead: a short worktree root whose checked-out files exceed MAX_PATH.
  • Post-creation commands still lack the flag — branch checkout and stash issued into an existing worktree. Removal already has a recovery path (isWindowsLongPathWorktreeRemovalError + \\?\-prefixed removal).

Linked Issue

Fixes #15785

Visual Proof

N/A — no UI, renderer, or user-visible surface changes. This only alters the argv of Git subprocesses.

Testing

Real Windows hardware verification (2026-08-22)

Host awin — Windows, Git Bash (MINGW64), git version 2.55.0.windows.3. Repo checked out at C:/Users/neil/orca/orca. Baseline config check first, so nothing masked the bug:

$ git --version; echo GLOBAL=[$(git config --global --get core.longpaths)]; echo SYSTEM=[$(git config --system --get core.longpaths)]; echo LOCAL=[$(git config --local --get core.longpaths)]
git version 2.55.0.windows.3
GLOBAL=[]
SYSTEM=[]
LOCAL=[]

1. Original failure reproduced. Scratch repo C:\Users\neil\lp-test\src, worktree target 276 chars:

$ git worktree add -b deep1 "$D" main   # ${#D}=276
Preparing worktree (new branch 'deep1')
fatal: could not create leading directories of 'C:/Users/neil/lp-test/wt/aaaa.../.git': Filename too long
EXIT=128

2. The fix resolves the real-world shape — short worktree root, tracked files that push past MAX_PATH (241-char relative path, 267 chars absolute):

$ git worktree add -b w1 /c/Users/neil/lp-test/wt2 main            # pre-fix argv
fatal: cannot create directory at 'd/aaaa.../aaaa...': Filename too long
EXIT=128

$ git -c core.longpaths=true worktree add -b w2 /c/Users/neil/lp-test/wt2 main   # post-fix argv
Preparing worktree (new branch 'w2')
HEAD is now at 5ae127f deepfile
EXIT=0
$ cat "$F"   # ABSLEN=267
deepcontent

3. Sparse path — claim #1 in "Why" confirmed on hardware. Replaying addSparseWorktree's exact command sequence, the failing call is checkout <branch>, exactly as argued:

# pre-fix
worktree add --no-checkout --no-track -b s1 ... -> add_ok
sparse-checkout init --cone                    -> init_exit=0
sparse-checkout set -- d                       -> set_exit=0
checkout s1  -> fatal: cannot create directory at 'd/aaaa...': Filename too long ; checkout_exit=128

# post-fix
sparse-checkout init --cone                       -> init_exit=0
-c core.longpaths=true sparse-checkout set -- d   -> set_exit=0
-c core.longpaths=true checkout s2                -> Already on 's2' ; checkout_exit=0
cat <267-char path>                               -> deepcontent ; cat_exit=0

(sparse-checkout init --cone needs no prefix in practice: the worktree is always created --no-checkout, so there is no working tree for it to materialize. Exit 0 both times.)

4. Config scope verified on hardware — nothing leaked. After every command above:

GLOBAL=[]   SYSTEM=[]   SRC_LOCAL=[]   ORCAREPO_LOCAL=[]   git config --show-origin --get-all core.longpaths -> (empty)

5. Relay argv ordering validated against real Git for Windows. The --no-checkout splice offset produces a command real Git accepts, in both addWorktreeOp branches:

# argv exactly as addWorktreeOp emits it on win32 (splice puts --no-checkout after --no-track, before -b)
$ git -c core.longpaths=true worktree add --no-track --no-checkout -b r1 <path> main
Preparing worktree (new branch 'r1') ; exit=0 ; contents: ./ ../ .git   (no checkout, as intended)
$ git -c core.longpaths=true worktree add <path> ex1
Preparing worktree (checking out 'ex1') ; exit=0

(An earlier revision of this section quoted the operands as --no-checkout --no-track; that ordering is also accepted by Git but is not what the code produces. The block above is the produced argv, dumped from addWorktreeOp with a capturing GitExec and then run verbatim on awin.)

New finding — hard ceiling on worktree root path length, independent of this fix. core.longpaths does not make arbitrarily deep worktree roots work. Git for Windows' setup_explicit_git_dir() dies when $GIT_DIR (= <worktree>/.git) exceeds PATH_MAX - 40, and MinGW's PATH_MAX is 260. Measured boundary, all runs with -c core.longpaths=true:

len=150 exit=0   HEAD is now at 5ae127f deepfile
len=180 exit=0
len=200 exit=0
len=210 exit=0
len=214 exit=0
len=215 exit=0
len=216 exit=128  fatal: '$GIT_DIR' too big
len=220 exit=128  fatal: '$GIT_DIR' too big
len=240 exit=128  fatal: '$GIT_DIR' too big
len=276 exit=128  fatal: '$GIT_DIR' too big

This wall is not introduced by the PR — a 230-char root fails pre-fix too (exit 128, fatal: could not create directory of '.git/worktrees/<basename>'...: Filename too long; the exact path in the message shifts with the source repo's own path length). It is captured under "Known limitations". For scale on this host: Orca's own deepest tracked path is 117 chars and the worktree base C:/Users/neil/orca/workspaces/orca/ is 35, so Orca-on-Orca stays well inside both limits; the fix matters for user repos with deeper trees.

Not verified on hardware: SSH creation against a Windows execution host. awin runs no sshd (Get-Service sshd returns nothing, 0 listeners on port 22) and Orca has no Windows SSH host registered (orca host list shows only a Linux SSH target), so addWorktreeOp's Windows branch could not be exercised end to end — only its argv was validated against real Git for Windows (item 5). The remote sparse limitation was confirmed by code inspection only (sparse-checkout/checkout absent from ALLOWED_GIT_SUBCOMMANDS; validateGitExecArgs rejects any pre-subcommand global flag), not by an RPC round trip.

Independent re-verification (second pass, 2026-08-22)

Everything above was re-run from scratch in a fresh scratch tree (C:\Users\neil\lpv, since deleted) on awin (git version 2.55.0.windows.3), plus a real Linux SSH host (openclaw, git version 2.43.0). Results:

# baseline, before any test command
git version 2.55.0.windows.3
GLOBAL=[] SYSTEM=[] LOCAL=[] ORIGIN=[]

# source repo: one tracked file at a 242-char relative path.
# `git add` itself needs the flag at this depth, which is the same MAX_PATH wall:
error: unable to index file 'd/aaaa…/f.txt'
fatal: adding files failed

# short worktree root (C:\Users\neil\lpv\wt1x = 21 chars), deep tracked file
git worktree add -b w1x  …                        -> PREFIX_EXIT=128
  fatal: cannot create directory at 'd/aaaa…': Filename too long
git -c core.longpaths=true worktree add -b w2x  … -> POSTFIX_EXIT=0
  checked-out file resolves at ABSLEN=268, `cat` returns its contents

# config scope, immediately after both runs
GLOBAL=[] SYSTEM=[] SRC_LOCAL=[] WT2_LOCAL=[] SHOW_ORIGIN=[]

Sparse sequence replayed verbatim, both ways:

# pre-fix (only `worktree add` prefixed, i.e. @hwantage's commit)
add_exit=0  init_exit=0  set_exit=0  checkout_exit=128
  fatal: cannot create directory at 'd/aaaa…': Filename too long

# post-fix (this PR)
add_exit=0  init_exit_NOPREFIX=0  set_exit=0  checkout_exit=0  -> "Already on 's2'"
  ABSLEN=268 ; cat -> deepcontent ; GLOBAL=[] SYSTEM=[] SP2_LOCAL=[]

Root-path ceiling re-measured independently against a shallow repo, so only root length varies. Boundary reproduces exactly:

winlen=200 exit=0     winlen=214 exit=0    winlen=215 exit=0
winlen=216 exit=128 fatal: '$GIT_DIR' too big
winlen=217 exit=128    winlen=220 exit=128    winlen=240 exit=128

Non-Windows argv proven unchanged two ways, not just asserted:

  1. addWorktreeOp was driven with a capturing GitExec across all 12 combinations of platform ∈ {win32, darwin, linux} × noCheckout × checkoutExistingBranch, at this PR's head and at the merge base (2b1254d). The 8 non-Windows rows diff clean — byte-identical.
  2. The merge-base versions of worktree-add-creation-config.test.ts, add-sparse-worktree.test.ts and git-handler-worktree-ops.test.ts — which pin full argv strings on darwin — were checked out over this PR's production code and run: Test Files 3 passed (3) | Tests 32 passed (32).

Linux SSH host (openclaw, hostPlatform: linux): a worktree was created through the real ssh-git-provider → relay git.addWorktree path (succeeded), and afterwards GLOBAL=[] SYSTEM=[] LOCAL=[] ORIGIN=[]. Linux git 2.43.0 also accepts and ignores -c core.longpaths=true (LINUX_WITH_FLAG_EXIT=0, LINUX_NOFLAG_EXIT=0, config still empty after).

The remote-sparse limitation is now confirmed by execution, not only inspection — validateGitExecArgs was called directly with each argv createRemoteWorktree sends:

["sparse-checkout","init","--cone"]                     -> REJECTED: git subcommand not allowed: sparse-checkout
["sparse-checkout","set","--","packages/web"]            -> REJECTED: git subcommand not allowed: sparse-checkout
["checkout","feature/x"]                                 -> REJECTED: git subcommand not allowed: checkout
["-c","core.longpaths=true","sparse-checkout","set",…]   -> REJECTED: Global git flags before the subcommand are not allowed
["-c","core.longpaths=true","checkout","feature/x"]      -> REJECTED: Global git flags before the subcommand are not allowed

Still not verified end to end, and correctly disclosed as such above: SSH creation against a Windows execution host. Re-checked on this pass — awin reports no sshd service and 0 listeners on port 22, and orca host list still shows exactly one SSH target, which is Linux.

Local (macOS)

npx vitest run --config config/vitest.config.ts \
  src/shared/windows-long-path-git-args.test.ts \
  src/main/git/worktree-add-creation-config.test.ts \
  src/main/git/add-sparse-worktree.test.ts \
  src/main/git/worktree-sparse-checkout.test.ts \
  src/main/git/worktree-add-timeout-override.test.ts \
  src/main/git/worktree-add-local-base-refresh.test.ts \
  src/main/git/worktree-add-local-base-suggestion.test.ts \
  src/main/git/remove-worktree.test.ts \
  src/main/ipc/worktree-logic.test.ts \
  src/relay/git-handler-worktree-ops.test.ts \
  src/relay/git-handler-worktree-provisioning.test.ts
# 11 files passed, 212 tests passed

npx oxlint <changed files>                                                    # clean
npx oxlint --config config/oxlint-code-quality-native-plugins.json <changed files> --deny-warnings   # clean

Regression proof — with the two product files (src/main/git/worktree.ts, src/relay/git-handler-worktree-ops.ts) stashed back to @hwantage's original commit, 4 of the new tests fail and pass again once restored:

× relay: enables long paths when the SSH execution host is Windows
× relay: keeps --no-checkout ahead of -b once the long-path prefix is present
× sparse: enables long paths on the Windows commands that actually write the deep checkout
× local: still enables long paths for a Windows-path repo that has a WSL distro configured
Tests  4 failed | 38 passed

Note on the pre-existing suites: worktree-add-creation-config.test.ts and add-sparse-worktree.test.ts assert exact argv, which now depends on the host OS. Both suites pin process.platform to darwin in beforeEach, so they no longer silently fail for a maintainer running vitest on Windows (CI unit shards are ubuntu-latest and would have hidden that). The relay suite passes platform explicitly for the same reason.

Not run locally per repo policy for concurrent agents: pnpm typecheck, full pnpm lint, pnpm build. CI covers these.

Review

  • Cross-platform: the only behavior change is on win32; darwin/linux argv is byte-identical to before, asserted explicitly. No hardcoded path separators or modifier keys involved. WSL UNC paths (\\wsl.localhost\..., \\wsl$\...) opt out via parseWslUncPath, which is the platform-agnostic parser (the parseWslPath wrapper reads ambient process.platform and would defeat injection).
  • SSH / remote: this is the main gap the original PR left. The relay path now keys off the execution host's platform, honoring docs/reference/ssh-execution-boundary.md. This covers plain remote creation only; the remote sparse path is out of reach from here (see Known limitations). No wire change: no RPC params, stream opcodes, or published content are altered — the fix is host-local argv construction, so mixed client/host versions are unaffected in both directions (docs/reference/remote-wire-compatibility.md).
  • Agent / integration compatibility: git -c exports GIT_CONFIG_PARAMETERS to child processes, so a post-checkout hook inherits core.longpaths=true for that one invocation. That is documented Git behavior and not a privilege change. Telemetry still classifies the span correctly — -c is already in GIT_GLOBAL_OPTIONS_WITH_OPERAND (src/main/observability/instrumentation.ts:34), and findSubcommandIndex in wsl-direct-git-read-commands.ts:58 already skips -c when detecting subcommands, so WSL direct-read routing is unaffected. Folder workspaces are unaffected (this is worktree-creation-only). Provider-neutral: no GitHub/GitLab surface touched.
  • Performance: two extra argv strings per creation command. No new subprocess, probe, or I/O.
  • UI quality: N/A.
  • Security: -c is command-scope only; no git config --global/--system/--local write is introduced, so no user config is mutated. Values are literal constants passed as separate argv elements through the existing execFile-style path — no shell interpolation, and the relay's leading-- branch/base guard is untouched. The --no-checkout splice offset was the one real injection-adjacent risk (a wrong index would silently reorder the command); it is pinned by a test.
  • Contributor diff scan: I reviewed @hwantage's commit f269bf21 in full (2 files, +42/-1). It adds two literal argv strings and two unit tests. No network calls, no child_process/eval, no env or credential reads, no config writes, no dependency/lockfile/CI/workflow/entitlement changes, no obfuscation (diff is 100% ASCII), and no instruction-shaped text planted in comments or tests. Nothing malicious found.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance — all covered in Review above. Mobile is unaffected (main/relay process code only).

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

hwantage and others added 2 commits August 21, 2026 22:54
…H hosts

Builds on @hwantage's fix: `git -c core.longpaths=true` only helped the plain
`worktree add`, so two deep-path cases still failed with "Filename too long".

- Sparse creation: `worktree add --no-checkout` writes no files, so the flag
  now also rides the `sparse-checkout set` and `checkout <branch>` calls that
  actually materialize the tree. Without it the failure landed after the
  worktree existed and rolled the whole create back.
- SSH: relay addWorktreeOp builds its own argv, so a Windows SSH host was
  never covered. It now keys off the execution host's platform, not the
  client's, and the hardcoded --no-checkout splice index is offset by the
  prefix.
- Predicate is now the cwd (`\\wsl.localhost\...` opts out) rather than the
  wslDistro option, which is not what decides which git binary runs.

Scope stays command-level `-c`; no user, repo, or system config is written.
@coderabbitai

coderabbitai Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The change adds windowsLongPathGitArgs for platform-specific Git invocation arguments. Local worktree creation, sparse-checkout, and checkout commands use the arguments on Windows paths. Relay worktree operations accept an execution-host platform and apply the same handling, including --no-checkout ordering. Tests cover Windows, non-Windows, and WSL UNC paths.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 7 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The implementation addresses issue #15785 by enabling command-scoped core.longpaths for Windows worktree creation without changing Git configuration.
Out of Scope Changes check ✅ Passed All changes support Windows long-path handling for worktree creation, including related sparse and SSH execution paths, with no unrelated modifications.
Title check ✅ Passed The title clearly summarizes enabling Windows long paths for local, sparse, and SSH worktree creation.
Description check ✅ Passed The description follows the template and provides detailed scope, rationale, testing, limitations, review notes, and checklist status.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/shared/windows-long-path-git-args.ts (1)

5-16: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Condense this comment block.

Keep only the non-obvious command-scope and WSL UNC rationale. The detailed version history and repeated explanation make this helper harder to scan.

As per coding guidelines, “Comments must be concise, non-obvious, and brief—prefer one line.”

Source: Coding guidelines


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 01b805da-519d-46be-9e17-35c8cc5f171e

📥 Commits

Reviewing files that changed from the base of the PR and between 2b1254d and 78e3da6.

📒 Files selected for processing (7)
  • src/main/git/add-sparse-worktree.test.ts
  • src/main/git/worktree-add-creation-config.test.ts
  • src/main/git/worktree.ts
  • src/relay/git-handler-worktree-ops.test.ts
  • src/relay/git-handler-worktree-ops.ts
  • src/shared/windows-long-path-git-args.test.ts
  • src/shared/windows-long-path-git-args.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review.

@nwparker
nwparker merged commit 202d74a into main Aug 23, 2026
51 checks passed
paidaxingyo666 pushed a commit to paidaxingyo666/Manta that referenced this pull request Aug 23, 2026
…rse, and SSH hosts) (stablyai#15866)

Co-authored-by: hwantage <[email protected]>
(cherry picked from commit 202d74a)
CodeHourra pushed a commit to CodeHourra/orca that referenced this pull request Aug 23, 2026
Sylen00 added a commit to Sylen00/orca that referenced this pull request Aug 23, 2026
Four clusters, all introduced by the origin/main merge:

- config/scripts/vitest-host-ports-setup.ts left 28 suites failing on
  rmSync EPERM. POSIX lets an open file be unlinked; Windows does not, and
  a suite that keeps an OrchestrationDb open owns a handle in that scratch
  dir. Scratch cleanup under tmpdir must not fail a suite that passed.
- core.longpaths=true (stablyai#15866) is prefixed to worktree add on Windows, so
  argv literals in three suites could only be right on one platform; they
  now derive the prefix from windowsLongPathGitArgs.
- status-submodule-path-cache matched argv[0] for the subcommand, which is
  '-c' once that prefix is there.
- The new Hermes skills-root cases used drive-less path literals; the file
  already has a VOLUME constant for exactly that.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01R3oGCiyWVfKj1DXK2hTFTH
dallascrilley pushed a commit to dallascrilley/orca that referenced this pull request Aug 27, 2026
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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.

[Bug]: [Windows] Worktree creation fails with "Filename too long" for deep paths

2 participants