Repository navigation
Windows hooks start under unconverted paths, and six more setup and install fixes from outside reports - #4682
Merged
Merged
Conversation
…tor fixes from outside reports TypeScript hooks start on Windows when Git Bash leaves a path unconverted (#4386); setup --status passes on prefix installs (#4164) and names commands that clear its rows (#4420); setup's bun installs run under umask 022 (#4288); disabling open-gstack-browser removes connect-chrome (#4308); gstack-doctor skips gstack's own CLAUDE.md (#4324); harness registrations honor disabled_skills (#4548). Co-authored-by: Arnuv <[email protected]> Co-authored-by: Mahmoud ElNeMR <[email protected]> Co-authored-by: Yuan S. <[email protected]> Co-authored-by: Alexander William Haire <[email protected]> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
… read hook paths literally Review fixes for the second-model review on PR #4682: the connect-chrome alias cleanup now removes only the generated SKILL.md (an edited one is backed up, other files stay), and gstack-hook-check turns off globbing while it hands hook paths to cygpath and Bun. Review-Finding: p1v/outside-voice#1 reader=outside-voice Review-Finding: p1v/outside-voice#3 reader=outside-voice 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 was referenced Nov 22, 2026
This was referenced Nov 23, 2026
Merged
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.
Seven install and setup bugs reported by outside contributors are fixed, each with a test that fails on main: Windows hooks under an apostrophe home or with path conversion off, two misleading
./setup --statusrows, owner-only files in Bun's shared cache, a leftover/connect-chromealias, a doctor false alarm, and harness installs ignoringdisabled_skills.Nothing to do after merge; the next
./setupor upgrade picks it up.What changed
People on Windows reported that every TypeScript hook died with "Module not found" when their home folder held an apostrophe or they had
MSYS_NO_PATHCONV=1set. Each hook shim andgstack-hook-checknow hand Bun aC:/…path, and./setupturns Git Bash's path conversion back on for the programs it starts.'(or any path withMSYS_NO_PATHCONV=1) reaches native Bun as/c/x, so every TypeScript hook failed andgstack-hook-checkrefused all of themcygpath -mpath on Windows, and the checker reads those paths literally;./setupunsetsMSYS_NO_PATHCONVandMSYS2_ARG_CONV_EXCLfor what it starts./setup --statusfailed every--prefixinstall on../qa/sections/…../gstack-qa/…--refresh-registereddoes); the checkout's own Codex render showed as an unregistered project installbun installand the Playwright install ran under setup'sumask 077, leaving 0600 files in Bun's shared cacheumask 022; setup itself keeps 077/open-gstack-browserleft/connect-chromeregisteredgstack-relinkremoves the alias's generated SKILL.md through the ownership check; an edited one is backed up and the user's other files staygstack-doctorinside a gstack checkout flagged gstack's own CLAUDE.md as a pasted skill listdisabled_skillsWhy
"Every TypeScript hook dies with Module not found" (#4386) and six smaller reports: install and setup should work for everyone who installs gstack, including Windows users and people who turn skills off.
Blast radius
Install scripts and hook launchers. The
cygpathlines run only whenOSTYPEis msys or cygwin andcygpathexists, so Linux and macOS behaviour is unchanged (script ran: the destructive guard still deniesrm -rf /on Linux). The umask change applies only inside the two install subshells (test asserts setup's umask is still 0077 afterwards). Alias cleanup removes only gstack's generated file (tested with a user's file in the folder and an edited SKILL.md).Security read
Touches install scripts and hook launchers, so each was read for spawn and permission effects. No new dependencies, network calls or CI changes. Outside branches were read as text only and rebuilt on main.
Not fixed here
./setupunder a home folder holding an apostrophe still hands Bun unconverted/c/…paths at several call sites (the Codex preflight atsetup:1414is the first), and #4386 lists further failures past that point. Those need changes we can't verify without a Windows machine with such a home, so this PR fixes the hooks and theMSYS_NO_PATHCONVcase only.Test Coverage
12 of 14 changed paths have a test (86%); value-weighted 11 of 14 (79%). Tests: 1862 → 1862 files (+0 new files; 2 tests added in existing files during review). Gaps left as proposals: a non-checkout
.agents/skills/gstackregistry row, anddisabled_skillsnaminggstackorgstack-upgrade. Weak: the Playwright umask is a source check.Tests ran: targeted 197 (2 skipped: they need a real Hermes source and a real OpenClaw binary).
Pre-Landing Review
Two rounds. The first full pass found three blockers from the second-model review: two were fixed in this PR (the alias cleanup could delete a whole alias folder; hook paths were glob-expanded before Bun saw them), each with a test that fails without the fix, and one is in unchanged code (below). The second, scoped pass over the fix found nothing blocking.
Deferred findings
Blocking findings in code this PR did not change (review scope: frozen). They stay on this PR and are not filed as issues.
setup:1414under a checkout path holding an apostrophe, Git Bash leaves the Codex preflight's script path unconverted and native Bun exits; setup:7's unset does not cover that case (unchanged code at 1414-1417, same on main)Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
test/harness-register.test.ts:158sourceSkills callers in tests read disabled_skills from the ambient state rootbin/gstack-hook-check:248Cygwin lookup keys use /cygdrive while shellPath yields /c (not a regression)bin/gstack-hook-check:192a failed cygpath reports every entry as a bundle failure instead of naming cygpathsetup:7setup drops a user's narrow MSYS2_ARG_CONV_EXCL for everything it startssf-69051cf5ea2asecurity finding, details recorded privatelysf-8e5745c5c3e9security finding, details recorded privatelybin/gstack-hook-check:236same as red-team#1: helper paths still glob-expandedbin/gstack-relink:410same as red-team#2: false backup when a render differs from the checkoutExploratory QA
Pass: functional smoke, 2 probes.
gstack-doctorinside a gstack checkout reports its CLAUDE.md row ok and names the skip (#4324); the destructive guard hook on Linux still deniesrm -rf /. Windows branches were not probed on Linux; the Windows CI jobs cover them.Eval Results
No prompt-related files changed — evals skipped.
Scope Drift
Scope Check: CLEAN
Plan Completion
Plan completion audit: not run (no plan is bound to this branch; bug fix, plan exempt).
Verification Results
No plan verification items (bug fix, no plan file).
Issues
Refs #4164
Refs #4288
Refs #4308
Refs #4324
Refs #4386
Refs #4420
Refs #4548
Refs #4682
Refs p1v/outside-voice#1
Refs p1v/outside-voice#3
TODOS
No TODO items completed in this PR.
Documentation
Status: updated. One factual edit, no blockers.
Scope: branch fix/outside-setup-install, commits c2b4f0d to cf86d3d (2 commits, 30 files): Windows hook path handling (#4386),
./setup --statusnotes and filtering (#4164, #4420), the install umask (#4288), removing theconnect-chromealias when its skill is disabled (#4308),gstack-doctorskipping gstack's own CLAUDE.md (#4324), anddisabled_skillsfor OpenClaw, Hermes and Dots registrations (#4548). No staged, unstaged or new files.Documentation health:
Coverage debt: This is a bug-fix release with no new commands, flags or settings. The new
./setup --refresh-registeredhint in--statusoutput is covered in docs/hosts.md and docs/ADDING_A_HOST.md. The Windows hook path fix has only its changelog entry, with no troubleshooting entry for hooks failing with "Module not found" (minor gap).Diagram drift: none found.
Tests
bun teston gstack-doctor-launch, harness-register, host-conformance, relink, setup-hook-syntax-gate and setup-production-deps: 197 pass, 2 skip, 0 failAgent notes
Agent notes
Lane GSTA-801 for GStack Minder (GST-3483).
Approvals
No approvals recorded for branch fix/outside-setup-install.
Plan: exempt: bug fix rebuilt from outside reports, with failing-first tests
Plan check: exempt bug fix
REVIEW_LOOP: passes=2 blocking_found=3 deferred=1 noted=9 fixed=2 scope=frozen fix_checks=1 dispatches=2
Gate edits: none detected (10 listed, 2 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)