Skip to content

Fix "checkout main" on restored PR webview - #9045

Draft
Alex Ross (alexr00) wants to merge 1 commit into
mainfrom
alexr00/curved-alpaca
Draft

Alex Ross (alexr00) wants to merge 1 commit into
mainfrom
alexr00/curved-alpaca

Conversation

@alexr00

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The manager transition is consistently implemented and covered across restoration, ownership, and checkout scenarios.

0 open findings

What changed in this PR

Ensures restored PR webviews can transition from remote-only access to the matching local repository manager.

Changes:

  • Adds lazy remote-to-local manager upgrades.
  • Preserves repository ownership and listener routing.
  • Adds coverage for restoration, checkout, and manager resolution.
File Description
src/​github/​issueOverview.ts Adds lazy manager upgrading.
src/​github/​pullRequestOverview.ts Routes checkout operations through the selected local manager.
src/​github/​overviewRestorer.ts Restores panels with a remote-only manager.
src/​github/​folderRepositoryManagerResolver.ts Exposes remote-only manager retrieval.
src/​github/​externalUriOpener.ts Moves manager resolution into error handling.
src/​test/​github/​pullRequestOverview.test.ts Tests upgrading, ownership, and checkout behavior.
src/​test/​github/​overviewRestorer.test.ts Verifies remote-only restoration.
src/​test/​github/​issueOverview.test.ts Tests issue-panel manager upgrades.
src/​test/​github/​folderRepositoryManagerResolver.test.ts Tests local and remote-only resolution.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants