Repository navigation
Setup works on Windows when the home folder name has an apostrophe (#4386) - #4845
Merged
Merged
Conversation
…rophe (#4386) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/specialist-batched#1 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
./setupon Windows now installs when your home folder has an apostrophe in its name, such asC:\Users\O'Brien.Git Bash turns
/c/...paths intoC:/...before starting Bun, but skips any path holding an apostrophe, so setup stopped withModule not found.Nothing to do: re-run
./setupafter upgrading.What changed
Setup on a Windows runner with an apostrophe in the home folder: Bun could not find the script before; setup now finishes.
Before/after as text:
A Windows user whose home folder name has an apostrophe could not install gstack:
./setuphanded Bun a/c/Users/O'Brien/...path, which Git Bash leaves unconverted, and Bun stopped withModule not found. Setup now converts every path it passes to Bun itself, through a small_bun_pathhelper that usescygpath -munder Git Bash and does nothing elsewhere. That covers the Codex overlap preflight (script,--source,--namespace,--relocation),gstack-harnessrefresh and register, the skill-route default lookup and the skill-gate hook timeout. A new test pins those call sites and checks the helper on any OS.The proof is a one-off
windows-smokedispatch from a scratch branch, not a new required check. It cloned gstack into$RUNNER_TEMP/o'brien/smoke-home/.claude/skills/gstackand ran setup there: run 45840283430 failed on main, and run 45842245130 passed setup, the core skills start and the/browsechain flow.Why
"
./setupstill passes Bun unconverted paths under a home folder with an apostrophe" was the gap left open on #4386 after #4682. Windows users with such a name can now install gstack at all.Blast radius
Only Git Bash and Cygwin behave differently. Off Windows
_bun_pathprints its argument unchanged, whichtest/setup-bun-path-apostrophe.test.tschecks (script ran), and the full free suite passed on this head. No dependencies, network, permissions or workflows change.Pre-Landing Review
Two full review rounds and a second-model adversarial read. Round 1 found one gap (the
--relocationpath was unconverted), fixed in this PR. The final review of the whole diff found nothing blocking. The adversarial read raised four notes below the blocking floor, listed next; all four were already broken before this PR and lose no data.Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
setup:2054bun_cmd start of gstack-migrate-claude-code still passes unconverted paths; under an apostrophe home the legacy wrapper migration fails quietly (pre-existing, no data loss).setup:4474gbrain render passes unconverted --out-dir/--link-root paths; render keeps the previous output under an apostrophe home (pre-existing).setup:4426gstack-gbrain-detect (Bun shebang) may hit the same conversion skip; needs a Windows run with gbrain installed.setup:5013SKILL_ROUTE_BIN assignment would abort setup under set -e if cygpath -m failed (theoretical).Eval Results
No prompt-related files changed, so evals were skipped.
Issues
Refs #4386
TODOS
No TODO items completed in this PR.
Documentation
Status: current. The docs already match this change, so no files were edited.
Audited scope: the committed diff from
fd81a04to7ddeb754:setup(a new_bun_pathhelper that spells every path handed to Bun asC:/...throughcygpath -mon Git Bash or MSYS), three tests and one changelog fragment. Nothing is staged, unstaged or untracked. I also searched every Markdown and template file for MSYS path-conversion,cygpath,Module not foundand apostrophe mentions.Documentation health:
changelog.d/fix-windows-setup-apostrophe-home.md: current, and accurate about the cause and the fix.docs/support-tiers.md: current; the Windows minimal-support promise is unchanged.AGENTS.md: current; the Bun-isolation rule still holds.docs/troubleshooting.md: current; the Windows section has no stale claims.Coverage debt:
_bun_pathis internal to setup and adds no command, flag or setting users see, so it needs no reference doc.docs/troubleshooting.mdhas no entry for theModule not founderror that Windows users with an apostrophe in their home folder hit before this fix. That gap is minor and is reported here, not filled.Diagram drift: none.
Tests
bun test test/setup-bun-path-apostrophe.test.ts test/setup-skill-hooks-gate.test.ts test/setup-hook-syntax-gate.test.ts test/codex-hooks-setup.test.ts test/team-mode.test.tspassed.Agent notes
Follow-up to #4682 for #4386, per the maintainer ruling to test setup under an apostrophe home on a one-off Windows run and fix the call sites it breaks.
REVIEW_LOOP: passes=2 blocking_found=0 deferred=0 noted=4 fixed=1 scope=frozen dispatches=8
Gate edits: none detected (5 listed, 1 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Approvals: No approvals recorded for branch fix/windows-setup-apostrophe-home.
Plan: exempt: bug fix with a failing-first test and a Windows runner repro
Plan check: exempt bug fix
Refs GST-3483