Skip to content

Reset workspace diagnostic error counter after a successful pull - #1922

Merged
Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:mainfrom
trivikr:client-workspace-diagnostic-pulls
Oct 27, 2026
Merged

Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:mainfrom
trivikr:client-workspace-diagnostic-pulls

Conversation

@trivikr

Copy link
Copy Markdown
Contributor

The client stops re-polling workspace diagnostics once more than five pulls have failed, but it never reset the failure counter when a pull succeeded. Six transient failures spread across a session, even with successful pulls between them, permanently disabled workspace diagnostics until the client was restarted.

Reset the counter when a workspace pull succeeds, so the limit applies to consecutive failures only. Add an integration test that alternates failing and successful pulls and checks that the client keeps rescheduling them.

The client stops re-polling workspace diagnostics once more than five
pulls have failed, but it never reset the failure counter when a pull
succeeded. Six transient failures spread across a session, even with
successful pulls between them, permanently disabled workspace
diagnostics until the client was restarted.

Reset the counter when a workspace pull succeeds, so the limit applies
to consecutive failures only. Add an integration test that alternates
failing and successful pulls and checks that the client keeps
rescheduling them.
Copilot AI balanced review requested due to automatic review settings October 26, 2026 23:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The narrow fix preserves the existing failure threshold, and the regression test covers the reported failure sequence.

No open issues 🎉

Review effort: Balanced

@dbaeumer
Dirk Bäumer (dbaeumer) merged commit 801b8a5 into microsoft:main Oct 27, 2026
5 checks passed
@trivikr
Trivikram Kamat (trivikr) deleted the client-workspace-diagnostic-pulls branch October 27, 2026 13:30
@dbaeumer Dirk Bäumer (dbaeumer) added this to the 3.18.6 milestone Nov 19, 2026
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.

5 participants