Repository navigation
Description
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:
- Confirm that
ghis installed and executable. - Launch Orca 1.4.192 from the desktop launcher.
- In onboarding, open the GitHub integration step.
- Observe that Orca reports the GitHub CLI as unavailable/not installed.
- Use a GitHub-backed Orca feature in the same running process, or inspect its runtime activity.
- Observe successful GitHub CLI activity, including
gh api --include user/starred/stablyai/orca. - 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
-
Onboarding uses preflight state, not runtime GitHub capability state.
In the installed bundle,
IntegrationsStep-D2ekXCCy.jsmapspreflightStatus.gh.installedto the “CLI not installed” state, and separately mapspreflightStatus.gh.authenticatedto the connected/not-authenticated states.OnboardingFlow-CJJDRAFl.jsuses the same preflight fields to decide the GitHub task-source state. -
Preflight and runtime GitHub execution are separate implementations.
The main bundle’s preflight code uses
isCommandAvailable("gh"), which invokesgh --version, and thengh auth statusfor authentication. Runtime GitHub operations useghExecFileAsync(...), command resolution, and the runtime GitHub API methods. A successful runtimegh apidoes not write back topreflightStatus.gh. -
Preflight is cached in memory.
runPreflightCheck(force = false, context)stores the local-host result in a module-levelcached$2value and returns it for subsequent non-forced checks. The renderer store also coalesces requests and trackspreflightStatusChecked/preflightStatusLoading. -
The Re-check button does use the same preflight implementation, with force enabled.
IntegrationsStep-D2ekXCCy.jscallsrefreshPreflightStatus({ force: true })for Re-check. This is the samepreflight:checkIPC path as the initial check, not a separate runtime GitHub detector. -
The onboarding data file does not persist the GitHub preflight result.
Onboarding data is stored in the profile’s
orca-data.jsonfile. The inspected file contains onboarding progress/checklist data but nopreflightStatus,gh.installed, orgh.authenticatedfields. 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.jsgetGitHubSetupState(status)checksstatus.gh.installedandstatus.gh.authenticated.- Initial refresh calls
refreshPreflightStatus(). - Re-check calls
refreshPreflightStatus({ force: true }).
/opt/stably-orca/resources/app.asar.unpacked/out/renderer/assets/OnboardingFlow-CJJDRAFl.jsgetGitHubTaskSourceStatus(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-.jsaround lines 45628–45694- Renderer preflight state, request coalescing, and
window.api.preflight.checkinvocation.
- Renderer preflight state, request coalescing, and
/opt/stably-orca/resources/app.asar.unpacked/out/main/index.jsaround lines 107239+isCommandAvailable,isGhAuthenticated,runPreflightCheck, the module-levelcached$2, and thepreflight:checkIPC handler.
/opt/stably-orca/resources/app.asar.unpacked/out/main/index.jsaround lines 84284+ghExecFileAsyncand the separate runtime GitHub command path.
/opt/stably-orca/resources/app.asar.unpacked/out/main/index.jsaround lines 87001 and 87560- Runtime GitHub calls including
gh api --include user/starred/stablyai/orcaandgh api user --jq.
- Runtime GitHub calls including
/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
ragtimelab commentedon Sep 3, 2026
Confirmed on a macOS / MacPorts installation with the current Orca release.
Environment:
/opt/local/bin/ghgh auth statussucceedsThe CLI works from an interactive login shell, which resolves
ghto/opt/local/bin/gh. However, the running Orca GUI process inherited this PATH:That PATH excludes
/opt/local/bin;/usr/local/bin/ghis absent. Reproducing the GUI process environment directly causesghresolution to fail withcommand 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.