Repository navigation
Conversation
Co-authored-by: Orca <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
📝 WalkthroughWalkthroughThe changes add shared mobile terminal focus and session-tab activation helpers with one-time retries for logical client cutovers, then update session switching and pending-tab activation to use them. They also add stale-aware rate-limit refresh handling, prevent overlapping inactive Claude fetches, and introduce a subscriber-specific account refresh path. Account subscription RPC behavior and related mobile activation, rate-limit, runtime, and integration tests are updated accordingly. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
|
Superseded by #8789, which includes the full restored-terminal, tab-selection, workspace-visibility, diagnostics, and usage-refresh fixes on a fresh branch from current main. |
Summary
Root cause
The stable logical client intentionally rejects in-flight RPCs during connection migration after switching to the authenticated replacement. Mobile tab selection updated local state first, then silently swallowed those expected cutover failures, so the desktop could remain on the old tab and restored pending terminals could remain unactivated.
Separately, every
accounts.subscribereplay called the same forced refresh lane used by an explicit user refresh. A replay arriving during an active usage fetch queued another complete cycle. Inactive Claude previews also lacked the in-flight guard already present for Codex previews.Validation
Real-device test plan
The usage-loop fix requires the desktop change; the dropped-activation fix requires the mobile change.
Made with Orca 🐋