Skip to content

Conversation

@andrasbacsai
Copy link
Member

Changes

  • Add visibility API handling to pause heartbeat monitoring when browser tab is hidden
  • When tab becomes visible again, verify connection is still alive or reconnect automatically
  • Remove ApplicationStatusChanged event listener that was triggering terminal reloads on any team resource status change

This fix prevents false disconnections when switching tabs or minimizing the browser window, while still detecting actual connection losses when needed.

Add visibility API handling to pause heartbeat monitoring when the browser tab is hidden, preventing false disconnection timeouts. When the tab becomes visible again, verify the connection is still alive or attempt reconnection.

Also remove the ApplicationStatusChanged event listener that was triggering terminal reloads whenever any application status changed across the team.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@andrasbacsai andrasbacsai merged commit b3289af into next Dec 8, 2025
3 checks passed
@andrasbacsai andrasbacsai deleted the fix-terminal-disconnect branch December 8, 2025 19:48
@andrasbacsai andrasbacsai mentioned this pull request Dec 8, 2025
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