Skip to content

Fix refresh-to-empty bug and reduce refreshes - #9035

Merged
Alex Ross (alexr00) merged 2 commits into
mainfrom
alexr00/fortunate-spoonbill
Oct 8, 2026
Merged

Alex Ross (alexr00) merged 2 commits into
mainfrom
alexr00/fortunate-spoonbill

Conversation

@alexr00

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings October 8, 2026 09:29
@alexr00
Alex Ross (alexr00) enabled auto-merge (squash) October 8, 2026 09:29
@alexr00 Alex Ross (alexr00) self-assigned this Oct 8, 2026

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.

🟡 Changes recommended

The new lock can discard refreshes during active fetches and unnecessarily blocks independent workspace folders.

2 open findings
What changed in this PR

Fixes tree refresh races and removes redundant refresh events.

Changes:

  • Serializes overlapping “All Open” requests.
  • Consolidates configuration and active-PR refresh handling.
  • Adds concurrency and refresh-notification tests.
File Description
src/​view/​treeNodes/​pullRequestNode.ts Removes per-node refresh listeners.
src/​view/​prsTreeModel.ts Adds request serialization.
src/​view/​prsTreeDataProvider.ts Centralizes refresh handling.
src/​test/​view/​prsTree.test.ts Tests concurrency and refresh behavior.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread src/view/prsTreeModel.ts
Comment thread src/view/prsTreeModel.ts Outdated
@alexr00
Alex Ross (alexr00) marked this pull request as draft October 8, 2026 09:39
auto-merge was automatically disabled October 8, 2026 09:39

Pull request was converted to draft

@alexr00
Alex Ross (alexr00) marked this pull request as ready for review October 8, 2026 09:55
Copilot AI balanced review requested due to automatic review settings October 8, 2026 09:55

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 concurrency fix is well-scoped and comprehensively covered by regression tests.

0 open findings

2 resolved since last review

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@alexr00
Alex Ross (alexr00) merged commit e8d695e into main Oct 8, 2026
7 checks passed
@alexr00
Alex Ross (alexr00) deleted the alexr00/fortunate-spoonbill branch October 8, 2026 12:38
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