Skip to content

fix: auto-refresh PR status for all active workspaces in sidebar (Refs: beans-xixh)#146

Merged
hmans merged 1 commit into
mainfrom
beans/opposite-jay-yi2x
Mar 17, 2026
Merged

fix: auto-refresh PR status for all active workspaces in sidebar (Refs: beans-xixh)#146
hmans merged 1 commit into
mainfrom
beans/opposite-jay-yi2x

Conversation

@hmans
Copy link
Copy Markdown
Owner

@hmans hmans commented Mar 17, 2026

Summary

  • The PR status icons on sidebar workspace cards didn't auto-refresh — they were only updated when worktree filesystem events fired (file changes, creation, deletion)
  • Adds a 30-second periodic ticker to the WorktreesChanged subscription resolver that re-fetches PR data for all active worktrees
  • The ticker path only emits after PR data is fully populated (via populatePRsAsync), so there's no sidebar flicker

Test plan

  • Open the web UI with multiple workspaces that have PRs
  • Verify PR status icons appear on sidebar workspace cards
  • Push a commit to one of the PR branches and wait ~30 seconds — the check status icon should update without any manual interaction
  • Verify worktrees don't disappear/flicker during the periodic refresh

- Add 30-second periodic ticker to WorktreesChanged subscription resolver
- On each tick, re-fetch worktree list and populate PR data asynchronously
- Only emits after PR data is fully fetched (no sidebar flicker)

Refs: beans-xixh
@hmans hmans merged commit b7cbcc1 into main Mar 17, 2026
1 check passed
@hmans hmans deleted the beans/opposite-jay-yi2x branch March 17, 2026 19:28
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.

1 participant