Skip to content

fix(landing): make GitHub CLI setup nudge dismissible and provider-aware - #5688

Merged
Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/bug-github-cli-missing-dependency-warning-shown
Jun 18, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/bug-github-cli-missing-dependency-warning-shown

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The empty-workspace landing screen showed an alarming "Missing dependencies — GitHub CLI is not installed" banner even when every registered project is GitLab-backed. gh only powers GitHub PRs/issues/checks, so for GitLab-only users this is a false alarm. Fixes #5670.

Approach

Treat the GitHub CLI prompt as a soft, provider-scoped setup nudge rather than a global missing-dependency error:

  • Quieter styling — muted surface instead of the amber error frame, width capped so it reads as part of the centered content stack rather than a full-width banner.
  • Dismissible — the gh / gh-auth nudges get a persistent dismiss (X). Git stays pinned as a hard global dependency (no dismiss).
  • Resurfaces on intent change — dismissal snapshots the set of GitHub-backed project identity keys. The nudge comes back only when a genuinely new GitHub-backed project is added. Set-based, so:
    • Adding a GitLab / folder repo never retriggers it.
    • Removing and re-adding the same GitHub project doesn't retrigger it.
  • The banner only ever renders when gh is actually missing/unauthenticated, so a set-up user never sees it regardless.

Why dismiss-and-resurface (not full provider-scoping)

This deliberately does not statically classify every repo's provider to suppress the warning up front. A GitLab-only user still sees the nudge once, then dismisses it for good. This is the simpler, lower-risk path; the snapshot logic uses a safe predicate ("is any repo GitHub-backed?") rather than inferring "GitLab-only" from "not GitHub."

Changes

  • project-host-setup-projection.ts — export isGitHubBackedRepo() (additive; reuses existing GitHub-identity detection via upstream + GitHub avatar icon).
  • landing-preflight-dismissal.ts (new) — dismiss persistence + GitHub-key snapshot logic.
  • Landing.tsx — dismissible flag, dismiss button, re-seed on GitHub-set change, quieter styling.
  • Locale catalogs — new Dismiss key.

Testing

  • pnpm typecheck (node + cli + web) ✅
  • pnpm lint (oxlint, switch-exhaustiveness, localization catalog + coverage) ✅
  • New unit tests ✅ — 12 for the dismissal/snapshot logic, 4 for isGitHubBackedRepo, covering the GitLab-only case, new-GitHub-repo resurface, set-based re-add, per-issue independence, and corrupt-storage handling.

Notes / out of scope

  • Fresh-install educational nudge (when there are zero repos) is not included here — this PR focuses on the false-alarm fix.
  • Footer Star/Open GitHub UX is untouched.

Made with Orca 🐋


Open in Stage

The empty-workspace landing screen showed an alarming "Missing
dependencies — GitHub CLI is not installed" banner even for users
whose registered projects are all GitLab-backed, where `gh` is never
used. `gh` only powers GitHub PRs/issues/checks, so this is a false
alarm for GitLab-only users (#5670).

Treat the GitHub CLI prompt as a soft, provider-scoped setup nudge
rather than a global missing-dependency error:

- Quiet the banner styling (muted surface, no amber frame) and cap its
  width so it reads as a soft nudge, not an error state.
- Add a persistent dismiss to the gh / gh-auth nudges. Git stays pinned
  as a hard global dependency.
- Dismissal snapshots the set of GitHub-backed project identity keys;
  the nudge re-surfaces only when a genuinely new GitHub-backed project
  is added (set-based, so remove+re-add of the same project doesn't
  retrigger, and GitLab/folder repos never do).

Adds isGitHubBackedRepo() to the host-setup projection (reusing the
existing GitHub-identity detection) plus unit tests for both the
predicate and the dismissal logic.

Co-authored-by: Orca <[email protected]>
@ghost

ghost commented Jun 18, 2026

Copy link
Copy Markdown

Ready to review this PR? Stage has broken it down into 4 individual chapters for you:

Title
1 Export GitHub-backed repository detection utility
2 Implement dismissal persistence and snapshot logic
3 Add localization for the dismissal action
4 Update Landing UI with dismissible setup nudges
Open in Stage

Chapters generated by Stage for commit a1adeef on Jun 18, 2026 7:50am UTC.

@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The pull request adds dismissal support to the Landing page preflight banner. A new isGitHubBackedRepo predicate is exported from project-host-setup-projection.ts, detecting GitHub-backed repos via upstream data or repoIcon slug. A new landing-preflight-dismissal.ts module implements localStorage-backed dismissal: it snapshots sorted GitHub project identity keys at dismissal time and lapses the dismissal when a new GitHub-backed project appears. PreflightBanner is rewritten to accept repos, filter dismissed issues, and render an X-button only for dismissible issues. GitHub CLI install and authentication issues are marked dismissible; the Git dependency is not. A preflightDismiss i18n key is added across all locale files.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description covers the problem, approach, and changes comprehensively. However, it lacks explicit screenshots/recordings and the AI Review Report and Security Audit sections required by the template. Add screenshots/recordings of the dismissible banner UI, and include AI Review Report and Security Audit sections with cross-platform compatibility checks and security assessment.
Docstring Coverage ⚠️ Warning Docstring coverage is 21.43% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The PR title accurately summarizes the main change: making the GitHub CLI setup nudge dismissible and provider-aware, which directly addresses the core problem of a false-alarm banner for GitLab-only users.
Linked Issues check ✅ Passed The PR directly addresses issue #5670 by making the GitHub CLI banner dismissible and provider-aware, implementing smart resurface logic based on GitHub-backed project detection, exactly matching the issue's requirements.
Out of Scope Changes check ✅ Passed All changes are focused on the dismissible, provider-aware GitHub CLI nudge implementation. Locale updates, test additions, and helper functions directly support the core objective without unrelated modifications.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 46258c58-b8e1-4067-aec8-a555f2e3569d

📥 Commits

Reviewing files that changed from the base of the PR and between 048fc8c and a1adeef.

📒 Files selected for processing (10)
  • src/renderer/src/components/Landing.tsx
  • src/renderer/src/components/landing-preflight-dismissal.test.ts
  • src/renderer/src/components/landing-preflight-dismissal.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/shared/project-host-setup-projection.test.ts
  • src/shared/project-host-setup-projection.ts

Comment on lines +916 to +917
"157bb5ecbb": "Abrir GitHub",
"preflightDismiss": "Dismiss"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Use the synced catalog key format here.

This entry is keyed manually (preflightDismiss), but the localization workflow expects newly added strings to be auto-keyed so the generated catalogs stay consistent. Please rerun the localization sync for this addition.

Based on learnings: new strings should be auto-keyed using SHA1(file path + source text) and propagated as English fallbacks across locales.

Source: Learnings

@Jinwoo-H
Jinwoo-H merged commit e22d2c2 into main Jun 18, 2026
2 checks passed
@Jinwoo-H
Jinwoo-H deleted the Jinwoo-H/bug-github-cli-missing-dependency-warning-shown branch June 18, 2026 08:00
carlosbaraza added a commit to carlosbaraza/orca that referenced this pull request Jun 18, 2026
* upstream/main: (220 commits)
  Show and Filter Automation-Created Workspaces (stablyai#5697)
  Fix premature project header truncation
  Send review notes to any running agent of a worktree (stablyai#5654)
  Fix workspace sidebar appearance setting (stablyai#5725)
  Highlight the open file in the Source Control sidebar (stablyai#5667)
  release: v1.4.80-rc.1
  Fix premature Codex completion notifications (stablyai#5682)
  Improve Codex startup prompt reliability (stablyai#5686)
  Keep hibernated agent completions visible (stablyai#5689)
  Move Prompt Cache Timer setting to Agents pane, simplify expired state (stablyai#5691)
  release: v1.4.80-rc.0
  Skip GitHub CLI preflight checks if no GitHub projects exist
  fix: restore font family keyboard navigation in settings
  Update README downloads badge
  fix(landing): make GitHub CLI setup nudge dismissible and provider-aware (stablyai#5688)
  Fix nested workspace card indentation (stablyai#5684)
  Fix flaky e2e tests (stablyai#5680)
  Replace plus icon with play button on quick command entry (stablyai#5674)
  Use managed Pi and OMP extensions (stablyai#5681)
  Narrow computer-use e2e trigger (stablyai#5685)
  ...

# Conflicts:
#	mobile/src/terminal/TerminalWebView.tsx
#	mobile/src/terminal/terminal-webview-text-zoom.test.ts
carlosbaraza added a commit to carlosbaraza/orca that referenced this pull request Jun 18, 2026
* upstream/main: (78 commits)
  Show and Filter Automation-Created Workspaces (stablyai#5697)
  Fix premature project header truncation
  Send review notes to any running agent of a worktree (stablyai#5654)
  Fix workspace sidebar appearance setting (stablyai#5725)
  Highlight the open file in the Source Control sidebar (stablyai#5667)
  release: v1.4.80-rc.1
  Fix premature Codex completion notifications (stablyai#5682)
  Improve Codex startup prompt reliability (stablyai#5686)
  Keep hibernated agent completions visible (stablyai#5689)
  Move Prompt Cache Timer setting to Agents pane, simplify expired state (stablyai#5691)
  release: v1.4.80-rc.0
  Skip GitHub CLI preflight checks if no GitHub projects exist
  fix: restore font family keyboard navigation in settings
  Update README downloads badge
  fix(landing): make GitHub CLI setup nudge dismissible and provider-aware (stablyai#5688)
  Fix nested workspace card indentation (stablyai#5684)
  Fix flaky e2e tests (stablyai#5680)
  Replace plus icon with play button on quick command entry (stablyai#5674)
  Use managed Pi and OMP extensions (stablyai#5681)
  Narrow computer-use e2e trigger (stablyai#5685)
  ...

# Conflicts:
#	mobile/app/h/[hostId]/session/[worktreeId].tsx
#	mobile/src/terminal/TerminalWebView.tsx
#	mobile/src/terminal/terminal-webview-html.ts
carlosbaraza added a commit to carlosbaraza/orca that referenced this pull request Jun 18, 2026
* upstream/main: (220 commits)
  Show and Filter Automation-Created Workspaces (stablyai#5697)
  Fix premature project header truncation
  Send review notes to any running agent of a worktree (stablyai#5654)
  Fix workspace sidebar appearance setting (stablyai#5725)
  Highlight the open file in the Source Control sidebar (stablyai#5667)
  release: v1.4.80-rc.1
  Fix premature Codex completion notifications (stablyai#5682)
  Improve Codex startup prompt reliability (stablyai#5686)
  Keep hibernated agent completions visible (stablyai#5689)
  Move Prompt Cache Timer setting to Agents pane, simplify expired state (stablyai#5691)
  release: v1.4.80-rc.0
  Skip GitHub CLI preflight checks if no GitHub projects exist
  fix: restore font family keyboard navigation in settings
  Update README downloads badge
  fix(landing): make GitHub CLI setup nudge dismissible and provider-aware (stablyai#5688)
  Fix nested workspace card indentation (stablyai#5684)
  Fix flaky e2e tests (stablyai#5680)
  Replace plus icon with play button on quick command entry (stablyai#5674)
  Use managed Pi and OMP extensions (stablyai#5681)
  Narrow computer-use e2e trigger (stablyai#5685)
  ...

# Conflicts:
#	src/renderer/src/i18n/locales/en.json
#	src/renderer/src/i18n/locales/es.json
#	src/renderer/src/i18n/locales/ja.json
#	src/renderer/src/i18n/locales/ko.json
#	src/renderer/src/i18n/locales/zh.json
carlosbaraza added a commit to carlosbaraza/orca that referenced this pull request Jun 18, 2026
* upstream/main: (341 commits)
  Show and Filter Automation-Created Workspaces (stablyai#5697)
  Fix premature project header truncation
  Send review notes to any running agent of a worktree (stablyai#5654)
  Fix workspace sidebar appearance setting (stablyai#5725)
  Highlight the open file in the Source Control sidebar (stablyai#5667)
  release: v1.4.80-rc.1
  Fix premature Codex completion notifications (stablyai#5682)
  Improve Codex startup prompt reliability (stablyai#5686)
  Keep hibernated agent completions visible (stablyai#5689)
  Move Prompt Cache Timer setting to Agents pane, simplify expired state (stablyai#5691)
  release: v1.4.80-rc.0
  Skip GitHub CLI preflight checks if no GitHub projects exist
  fix: restore font family keyboard navigation in settings
  Update README downloads badge
  fix(landing): make GitHub CLI setup nudge dismissible and provider-aware (stablyai#5688)
  Fix nested workspace card indentation (stablyai#5684)
  Fix flaky e2e tests (stablyai#5680)
  Replace plus icon with play button on quick command entry (stablyai#5674)
  Use managed Pi and OMP extensions (stablyai#5681)
  Narrow computer-use e2e trigger (stablyai#5685)
  ...

# Conflicts:
#	src/main/text-generation/commit-message-text-generation.test.ts
#	src/main/text-generation/commit-message-text-generation.ts
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…are (stablyai#5688)

The empty-workspace landing screen showed an alarming "Missing
dependencies — GitHub CLI is not installed" banner even for users
whose registered projects are all GitLab-backed, where `gh` is never
used. `gh` only powers GitHub PRs/issues/checks, so this is a false
alarm for GitLab-only users (stablyai#5670).

Treat the GitHub CLI prompt as a soft, provider-scoped setup nudge
rather than a global missing-dependency error:

- Quiet the banner styling (muted surface, no amber frame) and cap its
  width so it reads as a soft nudge, not an error state.
- Add a persistent dismiss to the gh / gh-auth nudges. Git stays pinned
  as a hard global dependency.
- Dismissal snapshots the set of GitHub-backed project identity keys;
  the nudge re-surfaces only when a genuinely new GitHub-backed project
  is added (set-based, so remove+re-add of the same project doesn't
  retrigger, and GitLab/folder repos never do).

Adds isGitHubBackedRepo() to the host-setup projection (reusing the
existing GitHub-identity detection) plus unit tests for both the
predicate and the dismissal logic.

Co-authored-by: Orca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: GitHub CLI "missing dependency" warning shown for GitLab-only setups

1 participant