Repository navigation
v1.92.19.0 Skip the Aside probe off macOS so Linux and Windows render through gstack's own browser (#2864) - #3734
Merged
Merged
Conversation
…ng (#2864) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
This was referenced Oct 31, 2026
Contributor
|
Closing as not planned: on the 2026-10-31 build-or-close list, Garry decided few people would see a difference from this change. The branch stays in case we come back to it. |
10 of 13 tasks
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
probeAside() on Linux: before, it ran
asideand told you to install a Mac-only browser; after, it answers NEEDS_ASIDE without spawning and names the platform.Before/after as text
Why
#2864 asked to skip the Aside probe on Linux and Windows. Aside only ships for macOS, but
probeAside()inlib/aside-render.tsstill ranaside --versioneverywhere and, when it failed, told Linux users to install it. Now /make-pdf, /diagram andgstack-rendergo straight to gstack's own browser off macOS without starting a process.Blast radius
probeAside()has one production caller,pickEngine()(lib/aside-render.ts:671), used bybin/gstack-render.ts,make-pdf/src/setup.ts,make-pdf/src/orchestrator.tsandlib/design-lint/render.ts. They all branch onprobe.okandreason, and the reason staysNEEDS_ASIDE, so the fallback to gstack's browser is the same as whenasidewas missing from PATH (file:line read, plus the focused suites ran). No caller passes a second argument, andtest/helpers/aside-available.tscalls it with none. macOS keeps the old path becauseplatformdefaults toprocess.platform. The bash readiness block in the skills is deliberately unchanged (it already printsNEEDS_ASIDE: Linux), so #2864 stays open for that part.Security read: no network calls, no new environment reads, no permission or workflow changes and no new dependency. No outside contributor code was ported.
Behavior changes
process.platform !== 'darwin'),probeAside()returns{ ok: false, reason: 'NEEDS_ASIDE', detail: 'Aside is macOS-only (this is <platform>)' }and never runsaside, even when anasidebinary is on PATH.GSTACK_SKIP_ASIDE=1still wins over the platform check, and macOS behavior is unchanged.probeAside(timeoutMs, platform)takes an optional platform (defaultprocess.platform), which the tests use.asideon PATH is never asked.Approvals
Summary
On Linux and Windows the renderer used to probe for Aside, a macOS-only browser, and its failure text pointed users at aside.com. The probe now answers before it spawns anything off macOS. Review also fixed two things. An existing make-pdf CLI test assumed the probe always ran on Linux CI, and the first draft of the new detail text said "using gstack's own browser" even when that browser was the thing missing.
Test Coverage
Each changed runtime file has a changed test naming it (
Coverage: deterministic). New cases:test/aside-render.test.tsruns the fake-CLI probe suite withplatform: 'darwin'and adds linux/win32 cases that assert the detail and that the fake CLI is never invoked, plus aGSTACK_SKIP_ASIDEprecedence case.make-pdf/test/cli-exit-codes.test.tsadds an off-macOS CLI case.Regression proof for the new CLI case: it fails at origin/main 3bfe566 (12 pass, 1 skip, 1 fail) and passes on this branch (13 pass, 1 skip, 0 fail).
Tests ran: typecheck count unavailable
Tests ran: focused 184
Pre-Landing Review
Pass 1 (batched specialist: testing, security, state-machines, red-team): no findings. Core checklist found one blocker: the new early return made
make-pdf/test/cli-exit-codes.test.ts"Aside answers the probe but cannot run the script" fail on Linux. Reproduced at 1c7126d; passes at 3bfe566. Fixed in c84bbd7. Fix-check: clean, with one informational note. The Step 11 native adversarial pass flagged the probe detail's "; using gstack's own browser" as contradicting the no-browser error. That was this PR's own new text, fixed in 8f9f302. Second fix-check: no findings. A native adversarial rerun on the final tree found nothing blocking.REVIEW_LOOP: passes=1 blocking_found=2 deferred=1 noted=1 fixed=1 scope=frozen fix_checks=2 dispatches=1
Gate edits: none detected (GATE_SCAN: tagged=0)
Outside review (openai/gpt-6.1-sol): no findings meeting the blocking threshold.
Deferred findings
Blocking findings in code this PR did not change (review scope: frozen); filed as issues and not closed by this PR.
lib/aside-render.ts:659error-messageReview notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
make-pdf/test/cli-exit-codes.test.ts:320testingExploratory QA
No browser or UI surface changed. The behavior was exercised through the real CLI (
make-pdf generatewith a fakeasideon PATH and a fake browse binary) and the probe was called directly at the base and on this branch for the before/after above.Design Review
No frontend files changed, so design review was skipped.
Eval Results
No prompt-related files changed, so evals were skipped.
Scope Drift
Scope Check: CLEAN. Intent: skip the Aside probe off macOS (#2864, narrowed in the approved plan to
probeAside()only). Delivered: that change, its tests, and the review fix to the one make-pdf CLI test that assumed the probe always ran.Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). The approved plan is autoplan run autoplan-20261031175328 (see Approvals).
Issues
Refs #2864
TODOS
No TODO items completed in this PR.
Documentation
Status: current. No documentation edits were needed and there are no blockers.
Scope: branch gsta214/b, base 3bfe566, head 8f9f302. Four files changed: lib/aside-render.ts, changelog.d/gsta214-b.md, test/aside-render.test.ts and make-pdf/test/cli-exit-codes.test.ts. Nothing was staged or unstaged. Mode read-only, Steps 1, 1.5, 2–4 and 6.
Documentation health:
README.md Current (off-macOS Aside statements still accurate)
ARCHITECTURE.md Current (probe fallback description still accurate)
CONTRIBUTING.md Current (Aside test self-skip notes unaffected)
CHANGELOG.md Skipped (not modified; out of this audit's steps)
BROWSER.md Current (NEEDS_ASIDE row and probeAside description still accurate)
AGENTS.md Current (platform support matches)
docs/troubleshooting.md Current
docs/BROWSER_INTERNALS.md Current
docs/howto-diagrams-and-formats.md Current
changelog.d/gsta214-b.md Current (factual, voice acceptable)
Coverage debt: none new. The only added surface is the internal
platformparameter of probeAside, which no doc describes.Diagram drift: none. ARCHITECTURE.md describes the probe behavior at a level this change keeps true.
Test plan
bun run typecheck: passbun test test/aside-render.test.ts test/aside-driver.test.ts test/aside-probe-shell.test.ts make-pdf/test/cli-exit-codes.test.ts: 184 tests, 0 fail (at 8f9f302)UBI_OWNER=gsta214 gstack-pregate --stage tests --remote): tree 11b2548, 5020 tests, 0 failed, $0.05