Skip to content

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

Closed

Description

@thehashrocket

When Aside.app is installed but not running, the BROWSER SETUP probe prints ASIDE_CLI_ERROR: exit 1 instead of ASIDE_NOT_RUNNING. Rule 2 tells the agent to ask the user to open the app only for ASIDE_NOT_RUNNING. So the agent falls back to headless $B without asking, and users who have Aside installed keep getting the headless browser.

Repro (macOS, Aside CLI 1.26.916.1741, gstack 1.99.4.0):

  1. Quit Aside.app.
  2. aside repl 'console.log("ASIDE_READY " + pwd)'; echo "rc=$?"
    Failed to request daemon auth challenge: fetch failed
    Aside isn't running on this machine.
    rc=1
    
  3. The probe's case "$_rc" sends any non-zero exit to *) ASIDE_CLI_ERROR.

Why the tests miss it: the stopped fixture in test/aside-probe-shell.test.ts prints [error] Aside app is not running and exits 0. The real CLI's wording is different and it exits non-zero.

Suggested fix: for a non-zero exit, check the output for the CLI's "isn't running" message before using ASIDE_CLI_ERROR, and still keep raw output from being printed. Add a fixture that exits 1 with the real wording.

Activity

  1. capy-ai commented on Nov 15, 2026

    @capy-ai
    Contributor

    Thanks, this is a clear one. The probe on main (scripts/resolvers/aside.ts) still sends every non-zero exit to ASIDE_CLI_ERROR, and the stopped test fixture exits 0, so the tests can't catch it. People who use Aside get the headless browser without being asked to open the app, which matters to us directly. We're taking it as a small fix: a maintainer agent will rebuild it on current main with a fixture that exits 1 with the real wording, then close this issue with a link to the change.

  2. added
    bug
    S3
    on Nov 15, 2026
  3. thehashrocket commented on Nov 15, 2026

    @thehashrocket
    ContributorAuthor

    Thanks, this is a clear one. The probe on main (scripts/resolvers/aside.ts) still sends every non-zero exit to ASIDE_CLI_ERROR, and the stopped test fixture exits 0, so the tests can't catch it. People who use Aside get the headless browser without being asked to open the app, which matters to us directly. We're taking it as a small fix: a maintainer agent will rebuild it on current main with a fixture that exits 1 with the real wording, then close this issue with a link to the change.

    This is already built in #4367: same fix on current main, a stopped-exit1 fixture that exits 1 like the real CLI, regenerated goldens, the size ledger, and a changelog fragment. CI is green. The only open call is the last commit, which raises the size pins by 94 B per skill for the new probe arm. Happy for the maintainer agent to land it as is or pick from it.

  4. capy-ai commented on Nov 22, 2026

    @capy-ai
    Contributor

    Thanks for pointing us at #4367, and sorry for the slow answer. We're picking this up. A maintainer agent working through a batch of fixes (our tracking thread GSTA-803) will first reproduce this on current main. If it reproduces, the agent rebuilds the probe change on main from your #4367, with you credited as co-author, and we'll close this issue with a link when it lands. We don't merge outside branches directly, so the rebuild is the route even though your PR was green. If it no longer reproduces, we'll close this and say what changed.

  5. capy-ai commented on Nov 22, 2026

    @capy-ai
    Contributor

    Fixed in #4686 (merged as 113deea). When the Aside CLI exits 1 with "isn't running", the browser setup check now reports ASIDE_NOT_RUNNING, so the agent asks you to open Aside instead of falling back to the headless browser. It ships with the next gstack update. Thanks for the clear repro!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    S3bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions