No actionable comments were generated in the recent review.
External image Recent review info
External image Run configuration
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: e57c093
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
0680ffa0-8df5-4193-ae4e-6ba8e95b50d6
External image Commits
Reviewing files that changed from the base of the PR and between e57c093cdd9032355c6251dd7192280b915b7a23 and 3a110af02bb584c83df26138e1ef79e56dd76c4b.
External image Files selected for processing: 5
docs/internals/connection-runtime.mdpackages/client-runtime/src/connection/driver.tspackages/client-runtime/src/connection/registry.test.tspackages/client-runtime/src/connection/supervisor.test.tspackages/client-runtime/src/connection/supervisor.ts
External image Files with no reviewable changes: 1
- packages/client-runtime/src/connection/registry.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Walkthrough
The connection supervisor no longer probes for better routes or switches a healthy session when another route becomes available. Necessary connection attempts use the current catalog entry, including routes learned during the session.
Changes: Connection route stability
Layer / File(s) Summary Remove the driver preflight API
packages/client-runtime/src/connection/driver.ts,packages/client-runtime/src/connection/registry.test.tsThe driver service no longer exposes preflight. Its test stub now providescheckRoutewithout apreflightcallback.Retain sessions until a necessary reconnect
packages/client-runtime/src/connection/supervisor.ts,packages/client-runtime/src/connection/supervisor.test.ts,docs/internals/connection-runtime.mdThe supervisor removes better-route checks, preferred-route retries, and automatic route switching. Tests verify that healthy sessions remain active and that newly reachable or learned routes are used on a necessary reconnect. The documentation describes the updated route behavior. Priority: External image Normal
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related issues
pingdotgg/t3code#16418— The changes remove some wakeup-triggered checks while retaining explicit reconnect wakeups. This overlaps with the issue’s concern about reconnect handling after mobile app resume.
Suggested reviewers:
t3dotgg
Merge Risk: External image Minimal · up to 3a110
Healthy sessions remain on their current route until a necessary reconnect, as intended. No actionable merge-blocking issue is established.
Pre-merge checks: Passed 4
Check name Status Explanation Title check Passed The title clearly identifies the client-runtime fix and its primary behavior: preserving healthy sessions when better routes appear. Description check Passed The description explains the problem, the implementation, scope, verification results, limitations, linked issue, and behavior tradeoff. It is complete enough for review, although it does not use the … Linked Issues check Passed Issue [ #24516] requires that a healthy session does not flap when a better route only passes discovery. The supervisor removes speculative better-route checks,BetterRouteAvailable, route preference…Out of Scope Changes check Passed The changed driver contract, supervisor logic, route tests, and connection-runtime documentation directly support [ #24516]. The driver removes the preflight API that enabled speculative switching. The…Full details: Description check
Explanation
The description explains the problem, the implementation, scope, verification results, limitations, linked issue, and behavior tradeoff. It is complete enough for review, although it does not use the template's section headings or provide explicit maintainer approval evidence.
Full details: Linked Issues check
Explanation
Issue [
#24516] requires that a healthy session does not flap when a better route only passes discovery. The supervisor removes speculative better-route checks,BetterRouteAvailable, route preference state, and route cooldown state. It keeps the active session until an existing reconnect path is necessary. Each new attempt reads the current catalog, so ranked and learned routes still apply. The added tests cover LAN failure during opening and synchronization, wakeups, network changes, explicit retry, a 12-minute interval, cleanup, and the next necessary connection.
Full details: Out of Scope Changes check
Explanation
The changed driver contract, supervisor logic, route tests, and connection-runtime documentation directly support [
#24516]. The driver removes the preflight API that enabled speculative switching. The tests verify session retention and route selection after reconnect. No unrelated product behavior is demonstrated.
Finishing Touches
🧪 Generate unit tests (beta)
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.