Skip to content

Remove auto-logout timer and connection tracking#306

Merged
filinvadim merged 1 commit into
developfrom
claude/cool-dirac-8obhi4
Jun 22, 2026
Merged

Remove auto-logout timer and connection tracking#306
filinvadim merged 1 commit into
developfrom
claude/cool-dirac-8obhi4

Conversation

@filinvadim

Copy link
Copy Markdown
Member

Removes the automatic logout functionality that was triggered when all dashboard connections were closed. This includes the grace period timer that allowed page reloads to reconnect without logging out.

Key changes:

  • Removed logoutGracePeriod constant and auto-logout timer mechanism
  • Removed connection tracking fields (activeConns, logoutTimer, connMx) from BridgeHandler
  • Removed connConnected() and connDisconnected() methods that managed connection state
  • Removed autoLogout() method that handled the grace period timeout
  • Removed IsAuthenticated() method from the Authenticator interface
  • Updated sameOrigin() comment to reflect removal of auto-logout logic
  • Simplified Handle() method by removing connection tracking calls

The node will no longer automatically log out the owner when the dashboard connection is closed.

https://claude.ai/code/session_01SgLQsdrATMmCAdk1vv9hsU

The business node sealed its database after the dashboard WebSocket had
been gone for 5s. warpdroid talks to the node over libp2p, not that
socket, and can't reopen the DB itself (only the owner's password can),
so closing the browser tab logged the owner out from under a paired
device and its next request failed with "db is not running".

Drop the auto-logout entirely: the connection accounting, the grace
timer, and the IsAuthenticated guard it relied on. Explicit dashboard
logout and the same-origin WebSocket check are kept.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SgLQsdrATMmCAdk1vv9hsU
@filinvadim filinvadim merged commit b452214 into develop Jun 22, 2026
6 checks passed
@filinvadim filinvadim deleted the claude/cool-dirac-8obhi4 branch June 22, 2026 10:54
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

3 participants