fix(llc): rejoin escalation fixes - #1284
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughPublisher reconnection now remains on the fast strategy until explicit escalation conditions are met. Closed peer connections trigger rejoin, transient disconnections remain healthy, and stalled publisher negotiation receives asynchronous recovery coverage. ChangesReconnection recovery
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant CallSession
participant StreamPeerConnection
participant Call
CallSession->>StreamPeerConnection: check ICE and signaling state
StreamPeerConnection-->>CallSession: report stalled or failed recovery
CallSession->>Call: request rejoin after failed renegotiation
StreamPeerConnection->>Call: request fast reconnect after failure
Call->>Call: escalate to rejoin after deadline, limit, migration, pending state, or closure
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1284 +/- ##
==========================================
+ Coverage 11.07% 11.10% +0.03%
==========================================
Files 686 686
Lines 50337 50350 +13
==========================================
+ Hits 5576 5593 +17
+ Misses 44761 44757 -4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/stream_video/lib/src/call/call.dart`:
- Around line 2066-2081: Update the shouldRejoin decision in _reconnect to
remain true whenever the current SfuReconnectionStrategy is rejoin, including
after a failed attempt. Preserve the existing pending, migration, attempt-limit,
and closed-peer-connection conditions so an already-required full rejoin cannot
downgrade to fast reconnect.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 47677738-1b1a-44cf-aba9-81d8d2d15363
📒 Files selected for processing (6)
packages/stream_video/CHANGELOG.mdpackages/stream_video/lib/src/call/call.dartpackages/stream_video/lib/src/call/session/call_session.dartpackages/stream_video/lib/src/webrtc/peer_connection.dartpackages/stream_video/test/src/call/session/call_session_reconnect_safety_test.dartpackages/stream_video/test/src/webrtc/peer_connection_renegotiation_test.dart
Summary by CodeRabbit
disconnectedno longer forces an unhealthy-path rejoin; only permanentlyclosedconnections do.newICE and stuckhave-local-offersignaling.