Repository navigation
fix(render): offer the Aside remedy only on macOS (#3735); fix docs/skills.md vision-model line (#3375) - #4131
Merged
Merged
Conversation
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>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Contributor
|
Flaky rerun (crew rule 16, standing approval): Free Tests run 42391566673 attempt 1 at 49c284d failed one case, |
This was referenced Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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
Missing-browser advice is platform-aware (#3735).
NO_BROWSER_HELPinlib/aside-render.tsis what/make-pdf setupprints afterTo fix:and what the renderer's no-engine error carries. A newnoBrowserHelp(platform = process.platform)adds the Aside remedy only ondarwin; every platform keepsrun ./setupandGSTACK_BROWSE_BIN.NO_BROWSER_HELPstays exported asnoBrowserHelp(), so callers are unchanged, and macOS output is byte-identical to before.docs/skills.md vision-model line (#3375). The
/design-htmlrefinement loop said "Uses GPT-4o vision". It now matchesdesign-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_MODELoverrides).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 fromprocess.platformwhen 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-htmlline 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 overridingprocess.platformin 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 forlinux,win32anddarwin, plus a check thatNO_BROWSER_HELPandpickEngine's no-engine error carry this host's advice. Against main'slib/aside-render.tsthe new block fails (0 pass, 1 fail).make-pdf/test/asideClient.test.tsandmake-pdf/test/setup-smoke.test.tsassertNO_BROWSER_HELPor 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.
scripts/resolvers/make-pdf.ts:46make-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.design-html/SKILL.md.tmpl:370Sibling 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.docs/skills.md:470Refinement-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:
noBrowserHelpfor linux, win32 and darwin. Linux and win32 omit the Aside remedy, darwin offers it, and all three keep./setupandGSTACK_BROWSE_BIN. Pass.pickEnginewith 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
cefcb20ato HEAD49c284daoncapy/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-htmlvision model.Documentation health
docs/skills.md: current. The/design-htmlrefinement-loop line matches the template's vision-model wording.changelog.d/capy-offer-the-aside-remedy.md: current. It matchesnoBrowserHelp(), 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 onlytest/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).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.