Repository navigation
Conversation
Preserve the desired running state after automatic recovery failures so a stale port conflict can be retried without treating it as an intentional server stop. Reconcile fallback ports through a throttled editor watchdog and cover its pure decision logic with unit tests.
|
Warning Review limit reached
Next review available in: 51 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change adds a Unity editor watchdog that reconciles persisted server intent with actual state, retries failed automatic recovery, synchronizes port settings, and preserves recovery-pending state across recovery failure paths. ChangesServer recovery watchdog
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant UnityEditor
participant ServerStateWatchdog
participant ServerStateWatchdogService
participant McpServerController
participant McpEditorSettings
UnityEditor->>ServerStateWatchdog: EditorApplication.update
ServerStateWatchdog->>ServerStateWatchdogService: DecideAction(observation)
ServerStateWatchdogService-->>ServerStateWatchdog: RecoverServer or RewriteSettings
ServerStateWatchdog->>McpServerController: StartRecoveryIfNeededAsync()
McpServerController->>McpEditorSettings: MarkServerRecoveryPending() on failure
ServerStateWatchdog->>McpServerController: SynchronizeRunningServerSettings()
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
Summary
User Impact
Changes
isServerRunning=truewith an empty session ID for automatic recovery failures, while keepingClearServerSession()for intentional stops.Verification
dotnet test tests/ServerStateWatchdog.UnitTests/ServerStateWatchdog.UnitTests.csproj --no-restore— 6 passed.node dist/cli.bundle.cjs compile --project-path "$(git rev-parse --show-toplevel)"— Success, 0 errors, 0 warnings.