Skip to content

fix: refresh header sync indicator immediately after committing - #108

Merged
Ziinc merged 1 commit into
mainfrom
claude/sync-indicator-staleness-e516jr
Jul 25, 2026
Merged

fix: refresh header sync indicator immediately after committing#108
Ziinc merged 1 commit into
mainfrom
claude/sync-indicator-staleness-e516jr

Conversation

@Ziinc

@Ziinc Ziinc commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Committing from the Review tab refreshed the diff viewer's own state but
left the workspace-status query untouched, so the header's ↑N sync
indicator stayed stale until something else happened to refetch it --
in practice, navigating to another workspace and back. For a workspace
level with its remote the control is hidden entirely at ↑0, so the
indicator did not appear at all after the commit.
Invalidate the workspace-status and workspace-statuses queries alongside
the existing post-commit refreshes so the header and sidebar pick up the
new ahead count on their own.
Adds an integration test (fails without the fix) and a screenshot spec
capturing the header before and after the commit.

Committing from the Review tab refreshed the diff viewer's own state but
left the workspace-status query untouched, so the header's ↑N sync
indicator stayed stale until something else happened to refetch it --
in practice, navigating to another workspace and back. For a workspace
level with its remote the control is hidden entirely at ↑0, so the
indicator did not appear at all after the commit.

Invalidate the workspace-status and workspace-statuses queries alongside
the existing post-commit refreshes so the header and sidebar pick up the
new ahead count on their own.

Adds an integration test (fails without the fix) and a screenshot spec
capturing the header before and after the commit.
@Ziinc
Ziinc merged commit 897cb89 into main Jul 25, 2026
8 checks passed
@Ziinc
Ziinc deleted the claude/sync-indicator-staleness-e516jr branch July 25, 2026 07:07
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