Skip to content

Improve stream signaling recovery stability - #379

Closed
Jayian1890 wants to merge 3 commits into
devfrom
fix/stable-reconnect-recovery
Closed

Improve stream signaling recovery stability#379
Jayian1890 wants to merge 3 commits into
devfrom
fix/stable-reconnect-recovery

Conversation

@Jayian1890

Copy link
Copy Markdown
Collaborator

Summary

  • fix signaling reconnect when connectSignaling is called with the same session key and the socket has dropped
  • add staged recovery in the renderer: signaling-only recovery first, then full reclaim with jittered backoff and forced auth refresh
  • add transport degradation escalation from WebRTC state changes and unit tests for recovery delay behavior

Test plan

  • cd opennow-stable && npm test
  • cd opennow-stable && npm run typecheck
  • manually toggle network during active stream and verify Stage A reconnect keeps media when possible
  • verify fallback Stage B reclaim succeeds after repeated signaling loss

Made with Cursor

Use staged recovery that retries signaling before full session reclaim, add jittered backoff with token refresh, and trigger recovery on sustained ICE/PC degradation while preserving existing gameplay state when possible.

Co-authored-by: Cursor <cursoragent@cursor.com>

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added 1 comment

Comment thread opennow-stable/src/renderer/src/App.tsx Outdated
Jayian1890 added 2 commits May 2, 2026 10:50
Implement detailed error logging and user feedback for transport recovery failures. When a session connection is lost, provide a descriptive error message and reset the launch runtime while preserving the streaming context. This improves user experience during connectivity issues.
@Jayian1890 Jayian1890 closed this May 2, 2026

@Jayian1890 Jayian1890 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in another pr

@Jayian1890
Jayian1890 deleted the fix/stable-reconnect-recovery branch May 7, 2026 02:04
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.

1 participant