Files
Brennan BensonandClaude Opus 5.5 8ac9fb6eee Stop re-reading every linked GitHub issue when the window returns (#40534)
* fix(github): stop re-reading every linked issue when the window returns

Each window reveal re-read the linked GitHub issue of every workspace, shown or not,
through the shared 4-slot gh queue, so PR, Checks and Merge waited behind hundreds of
issue reads, and above 500 linked issues the cache thrashed on every reveal.

Surfaces that show an issue now own its freshness: the reveal handler no longer sweeps
the catalog; workspace cards keep their own visible-only issue poll, now also in the
paired web client and for folder workspaces; the space manager's decision hover polls
its one issue while open.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(space): the open space-manager hover asks the main window to refresh its issue

The desktop Space window shows the main window's published issue cache, so a read done
in the Space window was overwritten by the next snapshot. The decision hover now owns
its issue's freshness only while open, follows the live link, and asks the main window
(the cache owner) to re-read it; the web client reads in place.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(space): route the hover's issue refresh by window and follow owner changes

Choose the main-window relay only in the separate Space window (the paired web client's
fallback API made the relay look available), and refresh when the worktree's owning host
changes, not only its link.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* perf(space): key the open hover's issue refresh off the row projection

The hover re-resolved its worktree owner from the store on every Space-window snapshot,
rebuilding the catalog lookup index each time. Use the cache key the row projection
already computes for the issue it shows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(space): use typed fixtures in the hover freshness test

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-10 16:46:16 -08:00
..