Skip to content

Sessions - bulk update context keys to avoid flickering#307497

Merged
lszomoru merged 1 commit intomainfrom
lszomoru/changes-context-keys
Apr 2, 2026
Merged

Sessions - bulk update context keys to avoid flickering#307497
lszomoru merged 1 commit intomainfrom
lszomoru/changes-context-keys

Conversation

@lszomoru
Copy link
Copy Markdown
Member

@lszomoru lszomoru commented Apr 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 2, 2026 19:54
@lszomoru lszomoru enabled auto-merge (squash) April 2, 2026 19:54
@lszomoru lszomoru self-assigned this Apr 2, 2026
@lszomoru lszomoru added this to the 1.115.0 milestone Apr 2, 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

This PR targets UI flicker in the Sessions “Artifacts/Changes” view by updating multiple context keys in a single buffered batch, ensuring action visibility/enabled state doesn’t rapidly toggle while session/repository state is still loading.

Changes:

  • Introduces per-instance IContextKey<T> fields bound once in the ChangesViewPane constructor.
  • Centralizes and bulk-updates related context keys via a new _bindContextKeys(...) helper using bufferChangeEvents.
  • Uses cached/structurally-compared derived observables to avoid redundant context key updates and reduce action flicker.

@lszomoru lszomoru merged commit 6f6ad97 into main Apr 2, 2026
23 checks passed
@lszomoru lszomoru deleted the lszomoru/changes-context-keys branch April 2, 2026 20:17
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