Skip to content

setup: browse binary not compiled when gen:skill-docs fails #482

@tamarinflow

Description

@tamarinflow

What happened

After upgrading gstack (v0.11.15.0 → v0.11.18.2), the browse binary is missing from browse/dist/. The ./setup script reports success ("gstack ready") but browse commands fail with "no such file or directory".

Root cause

The build script in package.json chains all steps with &&:

bun run gen:skill-docs && bun run gen:skill-docs --host codex && bun build --compile browse/src/cli.ts --outfile browse/dist/browse && ...

If gen:skill-docs fails (e.g. missing Codex host config, or any template error), the entire chain stops — the bun build --compile steps never run. The || true at the end masks the exit code, so ./setup doesn't detect the failure.

The Node server bundle (browse/scripts/build-node-server.sh) runs separately and succeeds, so ./setup prints "Node server bundle ready" and "gstack ready" even though the binary wasn't compiled.

Expected behavior

./setup should either:

  1. Separate gen:skill-docs from the compile steps so doc generation failure doesn't block binary compilation
  2. Or explicitly check for browse/dist/browse after bun run build and retry just the compile step

Workaround

cd ~/.claude/skills/gstack
bun build --compile browse/src/cli.ts --outfile browse/dist/browse

Environment

  • Linux x86_64 (Arch/CachyOS)
  • bun 1.3.5
  • gstack v0.11.18.2
  • Upgraded from v0.11.15.0 via git reset --hard origin/main && ./setup

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions