Skip to content

Report Aside as not running when its CLI exits 1 with the app closed (#4366) - #4367

Closed
thehashrocket wants to merge 7 commits into
garrytan:mainfrom
thehashrocket:fix/aside-probe-not-running-exit-1
Closed

thehashrocket wants to merge 7 commits into
garrytan:mainfrom
thehashrocket:fix/aside-probe-not-running-exit-1

Conversation

@thehashrocket

@thehashrocket thehashrocket commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #4366.

With Aside.app closed, Aside CLI 1.26.916 exits 1 and prints Aside isn't running on this machine. The probe sends every non-zero exit to ASIDE_CLI_ERROR, so rule 2 ("ask once to open the app") never fires and the agent falls back to headless without asking.

Change

In the *) arm, the non-zero case now pattern-matches the captured output with a nested case glob: *"isn't running"* reports ASIDE_NOT_RUNNING: app not running, anything else still reports ASIDE_CLI_ERROR. The output is only pattern-matched, never printed, so the no-raw-diagnostics rule still holds. (The first cut used a printf | grep pipeline; the case glob saves 19 B per rendered skill, so the probe arm costs +94 B over main instead of +113.) Applied to all four copies of the probe:

  • scripts/resolvers/aside.ts ({{ASIDE_SETUP}}, then regenerated SKILL.md files)
  • qa/sections/browser-setup.md
  • land-and-deploy/sections/canary.md (both copies)

Prompt-size bookkeeping

The probe arm adds bytes to every rendered skill that carries it, so this PR also:

  • Refreshes the four /ship golden pins (test/fixtures/golden/*-ship-SKILL.md) and the qa-only bookkeeping replay captures, which paste the readiness block verbatim.
  • Records the +97 B ship-union growth in test/size-ledger/ship/fix-aside-probe-not-running-exit-1.json.
  • Needs owner approval: commit ccd5eb58 raises the 30 SKILL.md size pins and 10 parity caps to the measured sizes. Raising a pin is an owner decision — drop that commit if the growth isn't approved.

Changelog

Adds changelog.d/fix-aside-probe-not-running-exit-1.md per the contributor flow: entry text only, no front matter (patch-level), no VERSION or CHANGELOG.md edits — the merge step assigns the version and folds the fragment into the CHANGELOG.

Tests

  • test/aside-probe-shell.test.ts: new stopped-exit1 fixture matching the real CLI (exit 1, real wording on stderr), asserted on bash, sh and zsh for every deadline launcher. The existing stopped fixture (exit 0) is unchanged.
  • bun test test/aside-probe-shell.test.ts test/aside-driver.test.ts test/aside-render.test.ts test/changelog-fragments.test.ts test/version-gate-fragments.test.ts test/parity-suite.test.ts at the current HEAD: 206 pass, 2 fail. The same 2 fail on unmodified main on this machine: the NEEDS_ASIDE: Linux assertion finds a real ~/.local/bin/aside, and the live-render test needs the app.
  • bun run typecheck clean; typecheck:test reports 812 known diagnostics, none new.

🤖 Generated with Claude Code

Aside CLI 1.26.x exits 1 with "Aside isn't running on this machine."
when the app is closed. The probe routed every non-zero exit to
ASIDE_CLI_ERROR, so the agent never asked the user to open the app
and fell back to headless silently. Check the non-zero output for the
CLI's "isn't running" message first; raw output still never prints.

Adds a stopped-exit1 fixture that matches the real CLI.

Fixes garrytan#4366

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trunk-io

trunk-io Bot commented Nov 14, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

thehashrocket and others added 5 commits November 14, 2026 14:32
Replaces the printf | grep in the non-zero arm with a case pattern on the
captured output. Same statuses and messages, no pipeline, and 19 fewer
bytes in every rendered skill that carries the probe (+94 instead of +113
over main).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XZRe2TCSikv3tVLAuh2kxD
…obe arm

The /ship goldens are byte pins of the rendered skill. The bookkeeping
fixture replays captured qa-only runs that paste the readiness block
verbatim, so each capture now carries the current block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XZRe2TCSikv3tVLAuh2kxD
The not-running arm adds 94 B to every rendered skill that carries the
Aside probe. Raises the 30 SKILL.md size pins and 10 parity caps to the
measured sizes. Raising a pin is an owner decision: drop this commit if
the growth isn't approved.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XZRe2TCSikv3tVLAuh2kxD
@thehashrocket

Copy link
Copy Markdown
Contributor Author

Pushed fixes for the red CI. Goldens, the QA bookkeeping replays, and the size ledger are refreshed, and I tightened the probe arm to a case glob (+94 B per rendered skill, down from +113). The last commit raises 30 SKILL.md size pins and 10 parity caps to the measured sizes. I know pin raises are your call: every probe message and the surrounding prose are test-pinned, so I couldn’t get to zero growth without touching contract text. Happy to drop that commit if you’d rather handle the budget differently.

@thehashrocket thehashrocket changed the title fix(aside): report ASIDE_NOT_RUNNING when the real CLI exits 1 Report ASIDE_NOT_RUNNING when the real CLI exits 1 Nov 14, 2026
@thehashrocket thehashrocket changed the title Report ASIDE_NOT_RUNNING when the real CLI exits 1 Report Aside as not running when its CLI exits 1 with the app closed (#4366) Nov 14, 2026
@capy-ai

capy-ai Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Thank you for the fix and for pushing through the golden and size updates. As we said on #4366, we're taking this one: a maintainer agent will rebuild the probe change on current main with you credited as co-author, and close this PR with a link once it lands. The size pins and parity caps are ours to adjust in that rebuild, so you don't need to do anything more here. It's queued behind other finished work, so it may take a few days.

@capy-ai capy-ai Bot added bug Something isn't working S3 Severity 3: everything else labels Nov 15, 2026
@capy-ai

capy-ai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Thank you for this. We're picking up the idea. A maintainer agent working through a batch of fixes (our tracking thread GSTA-803) will first reproduce the problem on current main. If it reproduces, the agent rebuilds the fix on main with you credited as co-author, because we don't merge outside branches directly, and we'll close this PR with a link when it lands. If it no longer reproduces, we'll close this and say what changed. The size pins and parity caps are ours to adjust in the rebuild, so there's nothing more for you to do here.

@capy-ai

capy-ai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Thank you! We rebuilt this on current main in #4686 (merged as 113deea), with you credited as co-author, so I'm closing this PR. The fix and your exit-1 test fixture are in.

@capy-ai capy-ai Bot closed this Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working S3 Severity 3: everything else

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Aside probe reports ASIDE_CLI_ERROR instead of ASIDE_NOT_RUNNING when the app is closed (real CLI exits 1)

1 participant