Repository navigation
Avoid live status heartbeat boundary race - #1951
Merged
David Pine (IEvangelist) merged 1 commit intoOct 26, 2026
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused timeout change and boundary assertions match the intended behavior, with no unresolved findings.
No open issues 🎉
What changed in this PR
This PR reduces unnecessary live-status WebSocket reconnections by allowing heartbeat jitter before treating a socket as stale.
Changes:
- Adds a five-second grace period after three heartbeat intervals, moving the stale cutoff from 45 to 50 seconds.
- Updates the unit test to verify the socket stays open through 49,999 milliseconds and closes at 50 seconds.
| File | Description |
|---|---|
src/frontend/tests/unit/live-status.vitest.test.ts |
Verifies the grace period and stale-socket reconnection boundary. |
src/frontend/src/components/live-status.ts |
Defines the heartbeat interval and grace period used to calculate the stale timeout. |
Review effort: Balanced
David Pine (IEvangelist)
enabled auto-merge (squash)
October 26, 2026 16:16
Contributor
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
Eric Erhardt (eerhardt)
approved these changes
Oct 26, 2026
David Pine (IEvangelist)
disabled auto-merge
October 26, 2026 16:30
David Pine (IEvangelist)
enabled auto-merge (squash)
October 26, 2026 17:08
David Pine (IEvangelist)
deleted the
ievangelist-fix-live-status-heartbeat-timeout
branch
October 26, 2026 17:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
pnpm --dir src/frontend exec vitest run --config vitest.config.ts tests/unit/live-status.vitest.test.ts— passed (20 tests)pnpm --dir src/frontend exec eslint src/components/live-status.ts tests/unit/live-status.vitest.test.ts --max-warnings 0— passed