Skip to content

Commit 09250a0

Browse files
vigoclaude
andcommitted
fix: refresh request list when tab becomes visible
Browser throttles SSE in background tabs, causing missed updates. Use Page Visibility API to reload requests when user returns to tab. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9f9ff8d commit 09250a0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

internal/webui/static/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,13 @@ <h3>Body</h3>
10131013
initialLoadDone = true;
10141014
connectSSE();
10151015
});
1016+
1017+
// Refresh when tab becomes visible (catches requests missed while in background)
1018+
document.addEventListener('visibilitychange', () => {
1019+
if (document.visibilityState === 'visible') {
1020+
loadInitialRequests();
1021+
}
1022+
});
10161023
</script>
10171024
</body>
10181025
</html>

0 commit comments

Comments
 (0)