Skip to content

honor pause for query refresh#584

Merged
bgentry merged 1 commit into
masterfrom
bg/fix-paused-query-refresh
Jun 2, 2026
Merged

honor pause for query refresh#584
bgentry merged 1 commit into
masterfrom
bg/fix-paused-query-refresh

Conversation

@bgentry
Copy link
Copy Markdown
Contributor

@bgentry bgentry commented Jun 2, 2026

While working through some screenshots of the new workflow v2 UI updates, I realized parts of the screen refreshed even though I had disabled live updates. The reason is that although paused live updates stopped the scheduled polling interval, React Query still used its default focus and reconnect refetch behavior. That meant a paused workflow detail page could still refresh workflow wait data when the browser regained focus or reconnected.

This centralizes the query refresh options derived from the global live update interval and applies them to the routes that already honor that setting. A paused interval now disables scheduled polling, focus refetches, and reconnect refetches; nonzero intervals keep the existing automatic refresh behavior.

The change includes focused regression coverage for focus-driven refetches so the pause semantics are asserted against data fetching rather than display-only timer updates.

Paused live updates stopped scheduled polling, but React Query still used
its default focus and reconnect refetch behavior. On workflow detail pages,
that could make wait data refresh when the browser regained focus even
though the page-wide interval was paused.

Centralize the query refresh options derived from the global interval and
use them anywhere route queries already honor that setting. A paused
interval now disables scheduled, focus, and reconnect refetches, while a
nonzero interval preserves the existing automatic refresh behavior.

Add focused coverage for the paused and enabled focus-refresh cases so the
pause semantics stay tied to data fetching rather than display-only timer
updates.
@bgentry bgentry force-pushed the bg/fix-paused-query-refresh branch from 01271f2 to 44be8ad Compare June 2, 2026 02:10
@bgentry bgentry changed the title [codex] honor pause for query refresh honor pause for query refresh Jun 2, 2026
@bgentry bgentry marked this pull request as ready for review June 2, 2026 03:12
@bgentry bgentry requested a review from brandur June 2, 2026 03:12
@bgentry bgentry merged commit 5329362 into master Jun 2, 2026
21 checks passed
@bgentry bgentry deleted the bg/fix-paused-query-refresh branch June 2, 2026 14:05
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