Windows: `./setup --status` run from the gstack checkout reports the checkout's own Codex sidecar as a separate unregistered project install and suggests moving it
What happened
On Windows 11 (Git Bash, no Developer Mode), running ./setup --status from inside the gstack checkout reports the checkout's generated Codex runtime sidecar as a separate, unregistered Codex project installation:
codex experimental project unregistered 1.99.0.0 ~/.claude/skills/gstack/.agents/skills (source: ~/.claude/skills/gstack/.agents/skills/gstack)
installed before the registry, and the gstack checkout lives in this host's runtime root (~/.claude/skills/gstack/.agents/skills/gstack), so ./setup --host codex would replace it; move it first: mv ~/.claude/skills/gstack/.agents/skills/gstack ~/gstack && cd ~/gstack && ./setup --host codex (docs/troubleshooting.md#setup-runtime-root-contains-checkout)
~/.claude/skills/gstack/.agents/skills/gstack is the generated runtime target that create_agents_sidecar builds inside the checkout (setup:3033). The global Codex install uses it (setup:4214-4219). It is not a separate installation and not a source checkout: it has VERSION but no setup. Following the printed fix would move the sidecar away from the path the global Codex skills use, and the ./setup --host codex that follows would fail because the sidecar has no setup.
This is the directory the docs send users to. troubleshooting.md:26-27 and README.md:291 say to run ./setup --status "in your gstack checkout" for hosts other than Claude. troubleshooting.md:7295 says "Run ./setup --status from your gstack checkout". README.md:67 shows it right after cd ~/gstack && ./setup --host auto.
Run from another repository that has no project-local gstack install, the same command prints only the real rows: agy, codex and claude global, all current. Expected: the checkout's own generated sidecar is not reported as an independently installed, unregistered Codex project installation, and no move is suggested for it.
Cause, from reading main at 4685fa9:
gstack_install_known_roots(bin/gstack-install-registry.sh:244, row at line 263) addscodex project $proj/.agents/skills/gstack.$projisgit rev-parse --show-toplevelof the current directory, so run from the checkout the candidate is the checkout's own sidecar._gstack_install_source(line 221) resolves the candidate's source. The candidate has nosetup, so the function takes its second branch,cd "$1/bin" && pwd -P(lines 225-227). On Windows the sidecar'sbinis a real copy, not a symlink (setup:3051-3053, the #2444IS_WINDOWSbranch), so the source resolves to the sidecar itself._gstack_status_rows(line 269) prints the candidate asunregistered, because only~/.codex/skills/gstackis in the registry.gstack_install_move_hint(line 40) then finds the source within the root (they are the same path, line 44) and adds the move command (lines 304-305).
We only observed this on Windows. Where the sidecar's bin symlinks resolve to the source checkout, the move hint seems unlikely to appear. The duplicate unregistered row and its "register it" advice may still appear there. We did not test that.
Suggested direction: when discovering project installs, don't count the source checkout's own generated sidecar as a separate project install, and keep discovering real project-local installs. We have not checked which predicate would also handle project-vendored copies (#2879) correctly, so we are not proposing one.
Steps to reproduce
- On Windows 11 with Git Bash and no Developer Mode, install gstack for Claude and Codex (
./setup,./setup --host codex). cd ~/.claude/skills/gstack && ./setup --status. The extracodex project unregisteredrow with the move hint shown above appears.cd <another repo with no project-local gstack> && ~/.claude/skills/gstack/setup --status. No such row.
Readiness report
gstack doctor 1.99.0.0
ok install root ~/.claude/skills/gstack: agy global current (1.99.0.0), codex global current (1.99.0.0), claude global current (1.99.0.0)
ok rescue refs none in ~/.claude/skills/gstack
ok state root ~/.gstack durable=yes (selected by default)
ok bun 1.4.4 at ~/AppData/Local/Microsoft/WinGet/Links/bun (floor 1.3.3, tested 1.4.2)
ok hooks 15 hook(s) parse
ok windows bash C:/Program Files/Git/bin/bash.exe (chosen by git --exec-path)
ok codex codex-cli 0.167.0; self-locate ok; model gpt-6.1-sol
ok codex probe cached MODEL_OK, 10d ago (not re-run; --live probes now)
ok artifacts sync status ok (mode full; queue 0)
ok browse bundle browse/dist built
ok binaries find-browse, design, pdf, gstack-global-discover launch (4 of 4)
not configured cso native helper not built; /cso reports not assessed
ok claude code 2.1.319 (Claude Code) at ~/.local/bin/claude
ok session journal largest of 60: 19.3 MiB
ok guard log 34 decisions (2 denied)
ok CLAUDE.md no gstack section lists skills
15 ok, 0 warn, 1 not configured, 0 fail
Environment
- Host and version: Claude Code 2.1.319; Codex CLI 0.167.0; gstack 1.99.0.0, installed at 9ab5034.
bin/gstack-install-registry.shandsetupare byte-identical between 9ab5034 and main 4685fa9. - OS: Windows 11 Pro, Git for Windows 2.46.0 (Git Bash), Bun 1.4.4, Node 24.20.0, no Developer Mode.
- Related: #3084 (the runtime-root move hint this row reuses), #2444 (the Windows sidecar copy branch), #2879 (project-vendored copies). Companion issue, same machine: #4281.
Thanks for tracing this to gstack_install_known_roots. Windows gets minimal support in gstack (docs/support-tiers.md): we keep install, startup and the core workflows working, and nothing beyond that. This is a misleading --status row on Windows checkouts, and the install itself keeps working, so I'm closing it as won't-fix. Please don't follow the printed move for the checkout's own sidecar. If a normal ./setup or a skill breaks because of it, reopen with the output and we'll look again.