gstack icon indicating copy to clipboard operation
gstack copied to clipboard

fix(setup-gbrain): document Windows MSYS quirks

Open maxpetrusenkoagent opened this issue 5 months ago • 2 comments

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-scripts on Windows shells, while bun link and gbrain init --pglite still run later
  • use a Windows .exe fallback for the local stdio MCP registration path when command -v gbrain does not resolve the binary
  • document the PGLite single-writer lock case where claude mcp list can report Failed to connect while the in-session mcp__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 pass
  • git 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 because maxpetrusenkoagent/main is behind upstream and this token cannot push workflow-file updates without workflow scope. The PR diff against garrytan/gstack:main remains limited to setup-gbrain/SKILL.md, setup-gbrain/SKILL.md.tmpl, and the new regression test.
  • bun run test:windows ⚠️ hit an unrelated existing browse/test/terminal-agent.test.ts source-guard failure in shard 5: the test expects spawnClaude( in the message handler, while current source uses maybeSpawnPty(...). 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.

maxpetrusenkoagent avatar Jun 10 '26 19:06 maxpetrusenkoagent

Merging to main in this repository is managed by Trunk.

  • [ ] To merge this pull request, check the box to the left or comment /trunk merge below.

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

trunk-io[bot] avatar Jun 10 '26 19:06 trunk-io[bot]

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.

maxpetrusenkoagent avatar Jun 10 '26 19:06 maxpetrusenkoagent