gstack
gstack copied to clipboard
fix(setup-gbrain): document Windows MSYS quirks
Summary
Fixes #1271.
This updates /setup-gbrain for the Windows MSYS/Git Bash quirks reported against gbrain v0.18.2:
- document why the installer uses
bun install --ignore-scriptson Windows shells, whilebun linkandgbrain init --pglitestill run later - use a Windows
.exefallback for the local stdio MCP registration path whencommand -v gbraindoes not resolve the binary - document the PGLite single-writer lock case where
claude mcp listcan reportFailed to connectwhile the in-sessionmcp__gbrain__*tools work - switch the local smoke test from stdin piping to
gbrain put "$SLUG" --content ...
Tests / verification
bun test test/setup-gbrain-windows-msys-quirks.test.ts test/setup-gbrain-path4-structure.test.ts✅ 21 passgit diff --check -- setup-gbrain/SKILL.md setup-gbrain/SKILL.md.tmpl test/setup-gbrain-windows-msys-quirks.test.ts✅bun run gen:skill-docs --host all --dry-run✅ on the upstream-based branch before fork push rewrite; the fork-based branch reports stale generated host files becausemaxpetrusenkoagent/mainis behind upstream and this token cannot push workflow-file updates withoutworkflowscope. The PR diff againstgarrytan/gstack:mainremains limited tosetup-gbrain/SKILL.md,setup-gbrain/SKILL.md.tmpl, and the new regression test.bun run test:windows⚠️ hit an unrelated existingbrowse/test/terminal-agent.test.tssource-guard failure in shard 5: the test expectsspawnClaude(in the message handler, while current source usesmaybeSpawnPty(...). Setup-gbrain focused tests still pass.- Codex autoreview against the exact diff: CLEAN, no blocking findings.
Notes
No UI/API/deployment behavior changed. This is a skill-doc/template fix plus a source-level regression test for the Windows setup-gbrain contract.
Merging to main in this repository is managed by Trunk.
- [ ] To merge this pull request, check the box to the left or comment
/trunk mergebelow.
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here
Verification from Mac mini catch-up lane:
- Focused test:
PATH=/Users/maxsmacmini/.local/bin:/opt/homebrew/bin:/Users/maxsmacmini/.bun/bin:$PATH bun test test/setup-gbrain-windows-msys-quirks.test.ts - Result: 4 pass, 0 fail
- Duplicate check: no existing PR found for issue #1271 before opening this draft
GitHub currently reports no status check suite for this draft PR; Trunk merge queue comment is present.