Repository navigation
fix(app): hide Issues and Pull requests when a project has no GitHub repository - #591
Merged
Merged
Conversation
…repository Why: apps/host/src/github.ts#function found | gh pr list --search returns [] for a repository GitHub can't find, so only gh api's 404 can tell an empty list from a missing repository
This was referenced Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hides the Issues and Pull requests rail tabs, their ⌘3/⌘4 shortcuts and menu actions, and their palette commands when the current project has no GitHub repository. That covers no GitHub remote, and a remote that GitHub can't find for this host's gh account.
gh pr list --searchreturns[]for a missing repository, so the app used to say "No open pull requests". Nowproject-repoasksgh api repos/<repo>, and a 404 answersnull. Other gh failures, such as no gh or signed out, still show the tabs so the lists can explain the problem. A window saved on Issues or PRs opens Channels for such a project.The asking host runs the check with its own gh account, so a teammate's host only names the remote.
Map: ^726 (Browse a project's issues), ^736 (Browse a project's pull requests).
Smoke: isolated loopback host on :4733 with three projects: no remote,
iamnbutler/nonexistent-xyz-123, andgithubnext/ace. Driven with headless Playwright. The first two projects show only Dashboard and Channels in the rail, no palette entry, and ⌘4 stays on the channel. Thegithubnext/aceproject shows both tabs, and ⌘4 opens Pull requests forgithubnext/ace.Built in Ace
No. Built by a Claude Code fix-train worker outside Ace, running a lane in the terminal and a headless Playwright smoke. See dogfooding #5.