Repository navigation
fix(landing): make GitHub CLI setup nudge dismissible and provider-aware - #5688
Conversation
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]>
|
Ready to review this PR? Stage has broken it down into 4 individual chapters for you: Chapters generated by Stage for commit a1adeef on Jun 18, 2026 7:50am UTC. |
📝 WalkthroughWalkthroughThe pull request adds dismissal support to the Landing page preflight banner. A new 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 46258c58-b8e1-4067-aec8-a555f2e3569d
📒 Files selected for processing (10)
src/renderer/src/components/Landing.tsxsrc/renderer/src/components/landing-preflight-dismissal.test.tssrc/renderer/src/components/landing-preflight-dismissal.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/shared/project-host-setup-projection.test.tssrc/shared/project-host-setup-projection.ts
| "157bb5ecbb": "Abrir GitHub", | ||
| "preflightDismiss": "Dismiss" |
There was a problem hiding this comment.
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
* 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
* 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
* 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
* 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
…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]>
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.
ghonly 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:
gh/gh-authnudges get a persistent dismiss (X). Git stays pinned as a hard global dependency (no dismiss).ghis 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— exportisGitHubBackedRepo()(additive; reuses existing GitHub-identity detection viaupstream+ GitHub avatar icon).landing-preflight-dismissal.ts(new) — dismiss persistence + GitHub-key snapshot logic.Landing.tsx—dismissibleflag, dismiss button, re-seed on GitHub-set change, quieter styling.Dismisskey.Testing
pnpm typecheck(node + cli + web) ✅pnpm lint(oxlint, switch-exhaustiveness, localization catalog + coverage) ✅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
Made with Orca 🐋