fix(FN-958): fix terminal idle disconnect with heartbeat tolerance

- Add heartbeat tolerance window to prevent false idle disconnects on terminal connections
- Increase client heartbeat interval from 30s to 45s for better idle tolerance
- Add session staleness detection on reconnect with idle state logging
- Add tests for heartbeat tolerance and client interval configuration
- Add changeset for patch release
This commit is contained in:
gsxdsm
2026-04-04 23:43:20 -07:00
parent 2b857cd245
commit bf1cb5df5c
5 changed files with 292 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ interface BufferedMessages {
const MAX_RECONNECT_ATTEMPTS = 5;
const INITIAL_RECONNECT_DELAY = 1000;
const HEARTBEAT_INTERVAL = 30000;
const HEARTBEAT_INTERVAL = 45000; // 45 seconds — slightly longer than server's 30s interval
function createEmptyBuffer(): BufferedMessages {
return { scrollback: null, connected: null, data: [] };