You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix chat context providers in agents composer - #9260
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Repository matching omits GitHub server identity, allowing incorrect PR attachments or failed lookups, while deduplication can silently hide distinct PRs across servers.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Unresolved host matching can load Enterprise content for GitHub.com attachments, while repository-initialization races can leave context pickers empty.
No open issues 🎉
3 previously missed issues
In code that hasn't changed since last review
Fetch issues for repositories ready before listener registration
src/issues/stateManager.ts:312
If a previously ignored Git repository is added while the initial setAllIssueData is pending, it can finish resolving remotes before this listener is installed. Its issues are absent from the initial fetch and never retried, leaving the picker empty until another refresh. Check already-ready managers when subscribing, as well as future events.
Wait for repository readiness before filtering providers
src/lm/chatContextScope.ts:33
While a newly discovered folder's remotes are still resolving, this filter removes its manager and both providers return [] despite a workspace folder being open. The picker does not reload those results, so it remains at “Go back” even after initialization finishes. Await repository readiness, honoring cancellation, before treating the folder as having no GitHub repository.
Match repository host when resolving attachment managers
src/lm/pullRequestContextProvider.ts:133
With a same-named Enterprise repository still open, opening a GitHub.com search attachment can load an Enterprise issue or refresh the PR from Enterprise. Match the attachment's host in both openDescriptionCommand's manager lookup and the overview's remote-to-local manager upgrade. Same issue in src/lm/issueContextProvider.ts:134.
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
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.
Fixes #9259