Skip to content

Onboarding can report GitHub CLI unavailable after runtime GitHub commands succeed #17435

Open

Description

@kigansolutions

Executive summary

Orca 1.4.192 can display “GitHub CLI not installed” in the onboarding Integrations step while the same running Orca process successfully executes GitHub CLI commands, including:

gh api --include user/starred/stablyai/orca

The implementation shows that onboarding reads a startup preflight snapshot, while GitHub runtime operations use a separate execution path. A successful runtime command does not update or invalidate the onboarding snapshot. The result is an internally inconsistent UI state.

The architectural inconsistency is proven. The initial preflight failure that produced the stale state is not.

Environment

  • Omarchy 4.0.1
  • Arch Linux
  • Hyprland
  • UWSM
  • mise with Aqua backend
  • GitHub CLI 2.98.0
  • Orca 1.4.192
  • Launches tested from both the desktop launcher and an interactive terminal

The GitHub CLI was independently verified with gh --version; mise doctor and mise environment checks were clean; the binary and mise shim executed successfully, including under a minimal environment. No PATH, ENOENT, or GitHub execution failure was observed.

Reproduction

Observed on the environment above:

  1. Confirm that gh is installed and executable.
  2. Launch Orca 1.4.192 from the desktop launcher.
  3. In onboarding, open the GitHub integration step.
  4. Observe that Orca reports the GitHub CLI as unavailable/not installed.
  5. Use a GitHub-backed Orca feature in the same running process, or inspect its runtime activity.
  6. Observe successful GitHub CLI activity, including gh api --include user/starred/stablyai/orca.
  7. Launching Orca from an interactive terminal successfully detects GitHub in the corresponding onboarding flow.

Observed behaviour

The onboarding UI reports that GitHub CLI is unavailable while the running application is demonstrably able to execute GitHub CLI commands successfully.

The runtime log also contains terminal_liveness_unavailable. This investigation found no implementation evidence tying that message to the GitHub preflight result, so it is not identified as the cause.

Expected behaviour

Onboarding should report GitHub CLI as available whenever the application can successfully execute the GitHub CLI for the current local execution context. If a probe fails, the UI should expose the actual failure category and should not remain inconsistent after a successful runtime GitHub operation.

Root-cause analysis

Proven findings

  1. Onboarding uses preflight state, not runtime GitHub capability state.

    In the installed bundle, IntegrationsStep-D2ekXCCy.js maps preflightStatus.gh.installed to the “CLI not installed” state, and separately maps preflightStatus.gh.authenticated to the connected/not-authenticated states. OnboardingFlow-CJJDRAFl.js uses the same preflight fields to decide the GitHub task-source state.

  2. Preflight and runtime GitHub execution are separate implementations.

    The main bundle’s preflight code uses isCommandAvailable("gh"), which invokes gh --version, and then gh auth status for authentication. Runtime GitHub operations use ghExecFileAsync(...), command resolution, and the runtime GitHub API methods. A successful runtime gh api does not write back to preflightStatus.gh.

  3. Preflight is cached in memory.

    runPreflightCheck(force = false, context) stores the local-host result in a module-level cached$2 value and returns it for subsequent non-forced checks. The renderer store also coalesces requests and tracks preflightStatusChecked/preflightStatusLoading.

  4. The Re-check button does use the same preflight implementation, with force enabled.

    IntegrationsStep-D2ekXCCy.js calls refreshPreflightStatus({ force: true }) for Re-check. This is the same preflight:check IPC path as the initial check, not a separate runtime GitHub detector.

  5. The onboarding data file does not persist the GitHub preflight result.

    Onboarding data is stored in the profile’s orca-data.json file. The inspected file contains onboarding progress/checklist data but no preflightStatus, gh.installed, or gh.authenticated fields. Therefore, the stale GitHub capability result is an in-process preflight-cache/UI-state problem; the inspected persistence layer is not storing the probe result.

Unproven finding

The exact reason the initial desktop-launch preflight produced a false or stale negative result cannot be proven from the available evidence. The preflight implementation does not record the probe’s command result/error in the observed logs, and no GitHub preflight failure, ENOENT, or PATH error was captured. Different launcher and terminal startup environments exist, but this report does not claim that PATH caused the failure.

Supporting implementation evidence

Evidence is from the installed Orca 1.4.192 bundle:

  • /opt/stably-orca/resources/app.asar.unpacked/out/renderer/assets/IntegrationsStep-D2ekXCCy.js
    • getGitHubSetupState(status) checks status.gh.installed and status.gh.authenticated.
    • Initial refresh calls refreshPreflightStatus().
    • Re-check calls refreshPreflightStatus({ force: true }).
  • /opt/stably-orca/resources/app.asar.unpacked/out/renderer/assets/OnboardingFlow-CJJDRAFl.js
    • getGitHubTaskSourceStatus(status) checks the same preflight fields.
    • The onboarding flow refreshes preflight status and uses it to determine whether integrations are complete.
  • /opt/stably-orca/resources/app.asar.unpacked/out/renderer/assets/store-DD4TafK-.js around lines 45628–45694
    • Renderer preflight state, request coalescing, and window.api.preflight.check invocation.
  • /opt/stably-orca/resources/app.asar.unpacked/out/main/index.js around lines 107239+
    • isCommandAvailable, isGhAuthenticated, runPreflightCheck, the module-level cached$2, and the preflight:check IPC handler.
  • /opt/stably-orca/resources/app.asar.unpacked/out/main/index.js around lines 84284+
    • ghExecFileAsync and the separate runtime GitHub command path.
  • /opt/stably-orca/resources/app.asar.unpacked/out/main/index.js around lines 87001 and 87560
    • Runtime GitHub calls including gh api --include user/starred/stablyai/orca and gh api user --jq.
  • /home/cameron/.config/orca/profiles/local-default/orca-data.json
    • Persisted onboarding progress; no persisted GitHub preflight status.

Recommended architectural fix

Use one authoritative GitHub capability service/state model for onboarding and runtime integrations. The service should:

  • perform the capability/authentication probe with structured error classification;
  • expose the probe result and diagnostics to onboarding;
  • invalidate or refresh capability state after a successful runtime GitHub command;
  • make forced re-checks use the same authoritative service while reporting the actual failure reason; and
  • avoid presenting “not installed” when the available evidence only establishes an authentication, timeout, or other probe failure.

The exact initial probe failure should also be made observable before assigning a more specific launcher, Electron, or environment cause.

Classification

This is an Orca defect: the application has two independent GitHub capability paths whose state can disagree. It is not established as a workstation, Omarchy, or Electron defect, and it is not expected behaviour.

Activity

  1. ragtimelab commented on Sep 3, 2026

    @ragtimelab

    Confirmed on a macOS / MacPorts installation with the current Orca release.

    Environment:

    • macOS 15.8 (24H22), x86_64
    • Orca 1.4.196
    • GitHub CLI 2.99.0 installed by MacPorts at /opt/local/bin/gh
    • gh auth status succeeds

    The CLI works from an interactive login shell, which resolves gh to /opt/local/bin/gh. However, the running Orca GUI process inherited this PATH:

    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
    

    That PATH excludes /opt/local/bin; /usr/local/bin/gh is absent. Reproducing the GUI process environment directly causes gh resolution to fail with command not found.

    So this is a deterministic initial preflight failure on macOS when GitHub CLI is installed through MacPorts, rather than only a stale negative result after an otherwise successful probe. Orca's terminal/login-shell context can see the CLI, while the GUI preflight cannot.

    Expected behavior: GitHub capability discovery should use one authoritative resolver for onboarding and runtime operations, support standard macOS package-manager locations including MacPorts, and surface the concrete probe failure instead of presenting the generic "GitHub CLI not installed" state. A successful runtime GitHub command should also invalidate or update the onboarding capability state.

  2. added
    bug
    on Sep 19, 2026
  3. added theissue type on Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buggit

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions