Skip to content

Sessions - fix hasGitHubRemote state detection#308677

Merged
lszomoru merged 1 commit intomainfrom
lszomoru/ripe-koala
Apr 9, 2026
Merged

Sessions - fix hasGitHubRemote state detection#308677
lszomoru merged 1 commit intomainfrom
lszomoru/ripe-koala

Conversation

@lszomoru
Copy link
Copy Markdown
Member

@lszomoru lszomoru commented Apr 9, 2026

No description provided.

@lszomoru lszomoru enabled auto-merge (squash) April 9, 2026 05:19
Copilot AI review requested due to automatic review settings April 9, 2026 05:19
@lszomoru lszomoru self-assigned this Apr 9, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes GitHub-remote detection in the Sessions Changes view model by avoiding a non-null assertion on repository state, preventing incorrect state evaluation (and potential runtime errors) when the repository state is not yet available.

Changes:

  • Guard hasGitHubRemotes(...) behind a repositoryState presence check and default to false when undefined.
Show a summary per file
File Description
src/vs/sessions/contrib/changes/browser/changesViewModel.ts Avoids calling hasGitHubRemotes with an undefined repository state when computing pull-request-related session state.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@lszomoru lszomoru merged commit 634fd6e into main Apr 9, 2026
27 checks passed
@lszomoru lszomoru deleted the lszomoru/ripe-koala branch April 9, 2026 06:29
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.

3 participants