Why this matters
The Actions queue and runner tables are live operational views - you keep them open while a release wave moves through CI, while you wait for a wedged runner to drain, or while you watch capacity during a burst. A plain full-page auto-reload would fight you the whole time: it resets your scroll to the top, drops whatever you typed into the search box, discards the status or event filter you applied, loses your column sort, and blinks the page on every cycle. The region-swap approach keeps the view stable and current at the same time, so you can set a filter, scroll to the row you care about, and leave the page running.
How it works
Each page wraps its live content in one or more elements with stable IDs. On the queue page these are the per-status count badges, the filter form, the live queue table (including its pagination), and the recent sync-runs section. On a runner page it is the runner table segment. A small script runs on a 15-second interval and, on each tick:
- Checks whether the tab is hidden; if so, it does nothing this cycle.
- Fetches the current URL (
location.href) in the background, sending theX-Requested-With: XMLHttpRequestheader and same-origin credentials so the request is authenticated as you. - Parses the returned HTML into an off-screen document.
- For each tracked region ID, finds the fresh element in that parsed document and replaces only that element in the live page, leaving everything else untouched.
- If anything fails - a network blip, a non-OK response - it silently skips that cycle and tries again on the next tick.
Because it fetches location.href - the exact URL you are on, query string and all - the server renders the table with the same filters, sort, search term, and page number that are already reflected in the address bar. The swap therefore brings back a table that matches your current view, just with fresher data. The filter form is swapped too, but since its inputs mirror the query string, the straight element swap leaves the status, event, search, and sort controls exactly as you set them while updating the counts beside them.
Why the pager lives inside the swapped region
On the queue, pagination is rendered inside the live region so the 15-second refresh swaps it along with the table. Each page link carries the full query string (minus the page number), so your status, event, search, and sort filters survive navigation and keep riding along through every refresh.
What stays put across a refresh
- Filters - the status, event, and search filters you applied.
- Sort - the column sort you chose.
- Search text - whatever is in the search box.
- Scroll position - the page does not jump to the top.
- Focus - your cursor stays where it was.
- Page - the page you paged to on a long queue.
What does update is the data: queue counts, waiting/running/held/blocked rows, runner online/offline/busy state, the current-job column, and the recent sync-runs list.
Step-by-step: use it on the queue
- Open Site Administration, then Actions, then Queue.
- Apply any filters you want - a status, a trigger event, a search term - and sort a column if you like.
- Scroll to the rows you care about and leave the page open. From this point you do not need to touch it.
- Watch the counts and rows update in place every 15 seconds. Your filters, sort, search, scroll, and page stay exactly as you left them.
- Switch to another browser tab and the refresh pauses automatically; switch back and it resumes on the next tick.
Step-by-step: use it on a runner list
- Open any runner table - admin (Site Administration, then Actions, then Runners), or the Runners tab under an organization, user, or repository's Actions settings.
- Search or sort the table if you need to.
- Leave it open while you work. The runner status and current-job columns refresh in place every 15 seconds, so a runner coming online, going busy, or draining shows up without a reload.
Caveats
- The interval is a fixed 15 seconds; it is not configurable per page.
- The refresh pauses while the tab is hidden (backgrounded or minimized) and resumes when the tab becomes visible again - so a backgrounded dashboard is not silently polling the server.
- It relies on JavaScript and the Fetch API. With scripting disabled, the tables still render normally on each full page load; they simply will not auto-update.
- A failed fetch (transient network or server error) is swallowed for that cycle - the page keeps its last-good content and retries on the next tick, so a brief blip never blanks the table.
- Because the fetch re-requests your exact URL, an extremely large filtered result is re-rendered server-side each cycle; the queue is paginated specifically so each refresh only materializes one page.
Get help
Open a support ticket or call (931) 820-0265.