Repository navigation
Report Aside as not running when its CLI exits 1 with the app closed (#4366) - #4367
thehashrocket wants to merge 7 commits into
Conversation
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]>
|
Merging to
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 |
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
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
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
|
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. |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XZRe2TCSikv3tVLAuh2kxD
|
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. |
|
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. |
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 toASIDE_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 nestedcaseglob:*"isn't running"*reportsASIDE_NOT_RUNNING: app not running, anything else still reportsASIDE_CLI_ERROR. The output is only pattern-matched, never printed, so the no-raw-diagnostics rule still holds. (The first cut used aprintf | greppipeline; 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.mdland-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:
/shipgolden pins (test/fixtures/golden/*-ship-SKILL.md) and the qa-only bookkeeping replay captures, which paste the readiness block verbatim.test/size-ledger/ship/fix-aside-probe-not-running-exit-1.json.ccd5eb58raises 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.mdper the contributor flow: entry text only, no front matter (patch-level), no VERSION orCHANGELOG.mdedits — the merge step assigns the version and folds the fragment into the CHANGELOG.Tests
test/aside-probe-shell.test.ts: newstopped-exit1fixture matching the real CLI (exit 1, real wording on stderr), asserted on bash, sh and zsh for every deadline launcher. The existingstoppedfixture (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.tsat the current HEAD: 206 pass, 2 fail. The same 2 fail on unmodifiedmainon this machine: theNEEDS_ASIDE: Linuxassertion finds a real~/.local/bin/aside, and the live-render test needs the app.bun run typecheckclean;typecheck:testreports 812 known diagnostics, none new.🤖 Generated with Claude Code