Skip to content

fix(render): offer the Aside remedy only on macOS (#3735); fix docs/skills.md vision-model line (#3375) - #4131

Merged
capy-ai[bot] merged 2 commits into
mainfrom
capy/offer-the-aside-remedy
Nov 7, 2026
Merged

capy-ai[bot] merged 2 commits into
mainfrom
capy/offer-the-aside-remedy

Conversation

@garrytan

@garrytan garrytan commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 4131,
  "head": "49c284da7816602f3fc486033c4bd960db62630e",
  "version": "1.98.0.0",
  "base": "main",
  "gate": {
    "test": {
      "pass": 1628,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 42391566673,
      "attempt": 2,
      "tree": "10aec1a2c8fed5bda7a3c686a844d13d8dd68f45"
    }
  ],
  "session_kind": "unattended",
  "head_tree": "10aec1a2c8fed5bda7a3c686a844d13d8dd68f45",
  "product_patch_id": "fb8d781312aaa28f5ead913101f46ee696632840",
  "gstack_version": "1.98.0.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 7,
    "rules": "c6a079fdf812f479",
    "base": "cefcb20a063d5decd13c1d4afa4dbc2f83099176",
    "registry": "cefcb20a063d5decd13c1d4afa4dbc2f83099176",
    "gate_scan": {
      "tagged": 0,
      "head": "49c284da7816602f3fc486033c4bd960db62630e"
    },
    "reasons": [
      "runtime=7"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @10aec1a2c8fe (8 checks, current for 49c284da7816)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/42391566673/attempts/2",
    "pregate.json/remote_gate: remote-gate tree=10aec1a2c8fe tests=36100 skipped=71 runs=42391566673/2 profiles=ci-reuse/free-tests heads=49c284da7816 verified=2026-11-07T16:45:59.638Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      3375,
      3735,
      4122
    ],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, BROWSER.md, ARCHITECTURE.md, CLAUDE.md, AGENTS.md, make-pdf/ and the touched design-html template, base cefcb20a to HEAD 49c284da"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 1,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "est_input_tokens": 2870,
    "ledgers_read": 3,
    "dispatches": {
      "specialist-batched": 1
    }
  }
}

What changed

On Linux the missing-browser error no longer tells you to open the macOS-only Aside app; the ./setup and GSTACK_BROWSE_BIN remedies stay

On Linux the missing-browser error no longer tells you to open the macOS-only Aside app; the ./setup and GSTACK_BROWSE_BIN remedies stay.

Before/after as text: On Linux the missing-browser error no longer tells you to open the macOS-only Aside app; the ./setup and GSTACK_BROWSE_BIN remedies stay
--- Before · before.txt · captured output
+++ After · after.txt · captured output
 $ make-pdf on Linux, no browser available
+no browser available: run ./setup in the gstack repo to build gstack's own headless browser (or point GSTACK_BROWSE_BIN at a browse binary)
-no browser available: open the Aside app (macOS 15+, aside.com), or run ./setup in the gstack repo to build gstack's own headless browser (or point GSTACK_BROWSE_BIN at a browse binary)
 

Missing-browser advice is platform-aware (#3735). NO_BROWSER_HELP in lib/aside-render.ts is what /make-pdf setup prints after To fix: and what the renderer's no-engine error carries. A new noBrowserHelp(platform = process.platform) adds the Aside remedy only on darwin; every platform keeps run ./setup and GSTACK_BROWSE_BIN. NO_BROWSER_HELP stays exported as noBrowserHelp(), so callers are unchanged, and macOS output is byte-identical to before.

docs/skills.md vision-model line (#3375). The /design-html refinement loop said "Uses GPT-4o vision". It now matches design-html/SKILL.md.tmpl:165: the provider's vision model (OpenAI gpt-5.5, or Gemini when only a Gemini key is set; GSTACK_DESIGN_MODEL overrides).

Why

#3735: Linux and Windows users who hit "no browser available" were told to "open the Aside app (macOS 15+, aside.com)", an app that does not exist on their platform. Now they see only the remedies they can use, and macOS users keep the Aside suggestion.

Blast radius

The change reaches the three runtime readers of NO_BROWSER_HELP (lib/aside-render.ts:534, lib/aside-render.ts:702, make-pdf/src/setup.ts:50), and each still prints a sentence that starts cleanly without the Aside clause (file:line read; both Linux strings captured in Exploratory QA). The value is computed from process.platform when the module loads, so compiled make-pdf binaries pick the platform at run time, not build time.

Approvals

No approvals recorded for branch capy/offer-the-aside-remedy.
Plan: exempt: bug fix (R65)
Plan check: exempt bug fix

Summary

Missing-browser help stops pitching the macOS-only Aside app to Linux and Windows hosts, and the docs/skills.md /design-html line stops naming GPT-4o. The second commit only renames the changelog fragment to the branch slug that changelog.d/README.md asks for.

Outside contribution

Rewritten on current main from @szsunyuan's #4122, read as text only (its branch was never checked out or run). The darwin-only ternary is theirs; credited with a Co-authored-by trailer. The test design differs: a direct noBrowserHelp(platform) seam instead of overriding process.platform in a subprocess driver. Security review of the rewrite: no network calls, no file or environment reads, no secrets, no new permissions, workflows, install scripts or dependencies; it only changes a help string.

Test Coverage

Coverage: deterministic (each of 1 changed runtime files has a changed test naming it; no audit reader).

  • test/aside-render.test.ts: one case each for linux, win32 and darwin, plus a check that NO_BROWSER_HELP and pickEngine's no-engine error carry this host's advice. Against main's lib/aside-render.ts the new block fails (0 pass, 1 fail).
  • make-pdf/test/asideClient.test.ts and make-pdf/test/setup-smoke.test.ts assert NO_BROWSER_HELP or the platform condition instead of the literal Aside text.
    Tests ran: test 1628 (files, carried from CI run 42391566673/2)

Pre-Landing Review

Pre-Landing Review: 1 issue — 0 auto-fixed, 0 asked (0 fixed, 0 skipped), 0 deferred, 1 noted
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=1 fixed=0 scope=frozen ledgers_read=3 dispatches=1 est_input_tokens=2870
Gate edits: none detected (5 listed, 4 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Readers: one batched specialist (testing, security, state-machines, red-team checklists): no findings. Native adversarial (Claude Opus 5.5): 3 Low, Blocks: no, recommendation "ship as-is". Outside voice: Codex CLI is not installed, so a cross-family Capy subagent (openai/gpt-6.1-sol) ran the outside-voice brief: no findings, recommendation "approve".

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL scripts/resolvers/make-pdf.ts:46 make-pdf skill prose (generated make-pdf/SKILL.md:78) still says 'open the Aside app' for exit 4 on every host; the runtime advice is now macOS-only. Agent-facing prose; reader stated Severity Low, Blocks no.
  • INFORMATIONAL design-html/SKILL.md.tmpl:370 Sibling skill prose still pitches the Aside app to every host when no browser is available (also diagram/SKILL.md.tmpl:132). Same as the pass-1 core note.
  • INFORMATIONAL [ADVISORY] docs/skills.md:470 Refinement-loop line omits GSTACK_DESIGN_PROVIDER=openai|gemini (design/src/auth.ts:168-172); it copies the template verbatim, so it is consistent but incomplete. Reader: optional, Severity Low, Blocks no.

Exploratory QA

Functional smoke on Linux (bun 1.4.4), 2 probes, verdict pass:

  • Capture 001: noBrowserHelp for linux, win32 and darwin. Linux and win32 omit the Aside remedy, darwin offers it, and all three keep ./setup and GSTACK_BROWSE_BIN. Pass.
  • Capture 002 (checkpoint 002): pickEngine with a NEEDS_ASIDE probe and no browse binary on this Linux host returns engine null and "no browser available: run ./setup in the gstack repo to build gstack's own headless browser (or point GSTACK_BROWSE_BIN at a browse binary) (NEEDS_ASIDE: aside not on PATH)". Pass.
    Limits: Linux host only; win32 and darwin hosts are covered by the pure-function probe and CI's macOS and Windows lanes, not native host probes.

Design Review

No frontend files changed — design review skipped.

Eval Results

No prompt-related files changed — evals skipped.

Review bot comments

No review bot comments.

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). This is a bug fix exempt from plan review (Plan: exempt: bug fix (R65)).

Issues

Refs #3375
Refs #3735
Refs #4122

Refs #3735, #3375 (the Captain closes them after merge).

TODOS

No TODO items completed in this PR.

Documentation

Status: current. The docs already match this branch, so no edits were needed.

Scope: base cefcb20a to HEAD 49c284da on capy/offer-the-aside-remedy: 6 committed files and no staged, unstaged or new files. Audited the docs that mention the no-browser message and the /design-html vision model.

Documentation health

  • docs/skills.md: current. The /design-html refinement-loop line matches the template's vision-model wording.
  • changelog.d/capy-offer-the-aside-remedy.md: current. It matches noBrowserHelp(), which shows the Aside remedy on macOS only.
  • make-pdf/SKILL.md.tmpl: current. It already says Aside is macOS 15+.
  • design-html/SKILL.md.tmpl: current, with an advisory note. The no-browser message still offers Aside with no platform qualifier; that is still valid.

Coverage debt: noBrowserHelp(platform) is an internal helper with reference coverage only (the changelog fragment); no user-facing docs gap. Diagram drift: none.

Test plan

  • bun run test (lane test): carried from Free Tests run 42391566673 attempt 2 at tree 10aec1a2c8fe, 1628 test files ran, 0 failing. Attempt 1 failed only test/cso-windows-launcher.test.ts "/cso on Windows: a dead-owner mutation lease is never reclaimed, bricking every later run #2894 lease sequence" on the Windows runner; the rerun of the failed jobs passed (flaky, recorded below).
  • Pregate on the final tree: requires-remote macOS lane cleared by the same run; PREGATE_VERIFY ok.
  • Exploratory QA smoke: 2 of 2 probes pass on Linux.

Flaky (rule 16): Free Tests run 42391566673 attempt 1 at 49c284d failed CSO native Windows startup > #2894 lease sequence: repeated commands, a legacy record elsewhere, and recycled or dead owners never brick start (test/cso-windows-launcher.test.ts:458, a lease file still present after inspect). This PR changes no CSO code, and the same check passed at cafe524, whose tree differs only by a changelog fragment rename. One rerun of the failed jobs (attempt 2) passed.

Open in Capy

NO_BROWSER_HELP told Linux and Windows hosts to open the Aside app, which
ships only for macOS. noBrowserHelp(platform) now adds the Aside remedy on
darwin only and keeps the ./setup and GSTACK_BROWSE_BIN remedies everywhere.
Also corrects docs/skills.md's /design-html refinement loop, which still said
"Uses GPT-4o vision", to match the design-html template (#3375).

Rewritten on main from outside PR #4122.

Co-authored-by: szsunyuan <[email protected]>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai

capy-ai Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Flaky rerun (crew rule 16, standing approval): Free Tests run 42391566673 attempt 1 at 49c284d failed one case, CSO native Windows startup > #2894 lease sequence: repeated commands, a legacy record elsewhere, and recycled or dead owners never brick start (test/cso-windows-launcher.test.ts:458, the lease candidate file still existed after inspect), which made free-tests red downstream. This PR changes no CSO code, and the same job was green at cafe524, whose tree differs from 49c284d only by a changelog fragment rename. One rerun of the failed jobs (attempt 2) passed; ci-carry accepted attempt 2 at tree 10aec1a2c8fe. Logged in the crew flaky ledger.

@capy-ai
capy-ai Bot merged commit 9b491bb into main Nov 7, 2026
63 of 65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant