Repository navigation
fix(remote): skip git-remote and gh PR status reads for remote repositories - #691
Merged
Ziinc merged 1 commit intoOct 1, 2026
Conversation
Ziinc
force-pushed
the
claude/prd-gaps-remote-path-guards-11
branch
from
September 30, 2026 09:27
8cb9e93 to
1e17581
Compare
…tories getGitRemoteUrl, getPrChecksViaGh and the PR-status cache/poller wrappers ran `git`/`gh` against a local directory at the remote path. For a remote repository they now return empty results through `localReadOr`, and the poller never starts. openOrCreateWorkspaceFromPr is asserted local. The sibling remote-mutations work adds typed PR and git-remote reads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MbYSPHBRmDYwPJpHG33Y4t
Ziinc
force-pushed
the
claude/prd-gaps-remote-path-guards-12
branch
from
September 30, 2026 09:28
a736f7e to
da79c6a
Compare
Base automatically changed from
claude/prd-gaps-remote-path-guards-11
to
claude/prd-gaps-remote-path-guards-5
October 1, 2026 07:44
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.
Stacked on #690. Removes 12 entries from
KNOWN_UNGUARDED.getGitRemoteUrl(useGitRemoteInfo)get_git_remote_urlon a local dir at the remote path (github.rs)nullgetPrChecksViaGh,getPrInfoViaGhghin that local dirnullstartPrStatusPolling,stopPrStatusPolling,refreshPrStatuses,refreshPrBranchStatusghagainst the remote pathlistCachedPrStatuses,listCachedPrCiStatuses,getCachedPrInfo,getCachedPrCiStatus{}/nullopenOrCreateWorkspaceFromPrassertLocalOperationlocalReadOr(repoPath, empty, read)(newsrc/lib/local-only.ts) returnsemptyfor a remote repository. Callers already treat "no remote / no PR" as a normal state, so no UI change is needed. The sibling remote-mutations PR adds typed PR and git-remote reads and can swap these for routes.Checks
remote-path-guards.test.tswith the shrunk list; full unit suite (826 passed)npm run check,lint,check:format,knip🤖 Generated with Claude Code
https://claude.ai/code/session_01MbYSPHBRmDYwPJpHG33Y4t
Generated by Claude Code