Repository navigation
[P1] fix(mobile): restore pairing self-heal and recover a wedged handshake - #11690
Conversation
readPairingKeychainItem threw when an Android presence record pointed at a SecureStore entry that read back null. Android reports absent and undecryptable identically, so the keystore fault the presence record was added to survive latched every caller out of its own orphan cleanup: the pairing journal store never reached its null-secret branch, stale winner-stamped metadata survived, and every later QR scan failed with "mobile relay pairing recovery pending". Report absent instead and drop the stale presence claim, still without falling back to the superseded older generation. The handshake-timeout path closed the socket with no handleSocketClosed fallback, unlike the connect-timeout and activity-probe paths. When React Native omits onclose for a wedged transport the client stayed in 'handshaking' forever with no reconnect armed.
Greptile SummaryThis PR fixes two independent regressions in the mobile transport layer: a pairing self-heal deadlock and a wedged handshake that never recovered.
Confidence Score: 5/5Safe to merge — both fixes are narrowly scoped, mirror pre-existing patterns in the same file, and are covered by regression tests that were verified failing on main and passing with the fix. The pairing-keychain change is a single-line fix with clear rationale: Android cannot distinguish absent from undecryptable, so the prior throw permanently blocked self-heal. The handshake-timeout synthesized-close mirrors the connect-timeout and activity-probe paths exactly. The new RpcSynthesizedCloseIndex uses a generation counter to prevent stale 4001s from disturbing a successfully-authenticated replacement socket, and the test suite explicitly covers the auth-failed latching, stale-4001-after-auth-success, and clock-accuracy scenarios. No shared state paths were changed beyond the targeted variables. Files Needing Attention: No files require special attention — all changed files have direct regression test coverage.
|
| Filename | Overview |
|---|---|
| mobile/src/transport/pairing-keychain.ts | Minimal targeted fix: null-read-at-recorded-generation now returns null instead of throwing, presence record deliberately preserved to prevent stale generation fallback. |
| mobile/src/transport/rpc-client.ts | Adds synthesized-close fallback for handshake-timeout (mirrors connect-timeout and activity-probe patterns), introduces per-socket authenticated/lastInboundAt tracking, extracts redactedEndpoint and ignoreStaleSocketEvent to shared modules, and handles stale 4001s from synthesized sockets via RpcSynthesizedCloseIndex. |
| mobile/src/transport/rpc-socket-close-evidence.ts | New module extracting close-event logging and stale-event detection; RpcSynthesizedCloseIndex uses WeakMap keyed by socket with authentication-generation comparison to safely promote late 4001s without disturbing the replacement socket. |
| mobile/src/transport/rpc-client-synthesized-close-diagnostics.test.ts | New test file with WedgedWebSocket fixture; covers close-clock accuracy, stale-close preservation of replacement socket diagnostics, auth-failed latching with stale 4001, and ignoring stale 4001 after replacement authenticates. |
| mobile/src/transport/cellular-connecting-label-stall.test.ts | Adds wedged-open-then-silent carrier behavior and two regression tests verifying the handshake-timeout synthesized-close path drives state to reconnecting and escalates through the connecting-label logic. |
| mobile/src/transport/mobile-relay-pairing-journal-store.test.ts | Adds end-to-end regression test for the Android undecryptable-secret self-heal path, asserting null load, metadata cleared, presence record survives first heal, then swept on second load, then re-pair succeeds. |
| mobile/src/transport/pairing-keychain.test.ts | Re-points existing stale-generation test to assert null resolution and presence-record retention instead of a throw; adds second-read assertion to confirm no generation walk-back occurs. |
| mobile/src/transport/socket-event-debug.ts | Adds exported redactSocketEndpoint helper extracted from the inline redactedEndpoint function previously private to rpc-client.ts; no behavioral change. |
Sequence Diagram
sequenceDiagram
participant HT as HandshakeTimer
participant RPC as rpc-client
participant WS as WebSocket (iOS)
participant SCI as RpcSynthesizedCloseIndex
participant HSC as handleSocketClosed
Note over RPC,WS: Wedged iOS transport — onclose swallowed
RPC->>WS: new WebSocket(endpoint)
WS-->>RPC: onopen fired
RPC->>RPC: setState('handshaking')
HT->>RPC: HANDSHAKE_TIMEOUT_MS elapsed
RPC->>WS: openingWs.close()
Note over WS: readyState=3, onclose never fires
RPC->>SCI: remember(openingWs, authenticationGeneration)
RPC->>HSC: handleSocketClosed(openingWs, timedOut)
HSC->>RPC: "ws=null, lastWsClosedAt=now"
RPC->>RPC: setState('reconnecting'), scheduleReconnect()
Note over RPC: Replacement socket created
RPC->>WS: new WebSocket(endpoint) [replacement]
opt Late real onclose from wedged socket
WS-->>RPC: "onclose code=4001"
RPC->>HSC: "handleSocketClosed(openingWs, closeCode=4001)"
HSC->>SCI: takeUnauthorized(openingWs, 4001, authGen, 4001)
alt authGen unchanged
SCI-->>HSC: true — count against auth budget
HSC->>RPC: "handleAuthRejection(preserveRecovery=true)"
Note over RPC: replacement socket untouched
else authGen incremented
SCI-->>HSC: false — ignore stale close
end
end
Reviews (9): Last reviewed commit: "fix(mobile): account for delayed synthes..." | Re-trigger Greptile
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe RPC client now synthesizes socket-close handling when handshake timeouts close sockets without 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
mobile/src/transport/rpc-client.ts (1)
388-391: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winKeep close diagnostics correct on the silent-close path.
The new fallback calls
handleSocketClosedwhenoncloseis missing. This bypasses the bookkeeping inws.oncloseat Lines 629-630. A silent handshake timeout leaveslastWsClosedAtstale or null, so the nextopenConnectionlog reports an incorrectmsSinceLastClose. Move the common close bookkeeping into a shared path while preserving the active-socket identity check.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: b3ecccae-2ee1-43d9-9439-4f5f9ecb4996
📒 Files selected for processing (5)
mobile/src/transport/cellular-connecting-label-stall.test.tsmobile/src/transport/mobile-relay-pairing-journal-store.test.tsmobile/src/transport/pairing-keychain.test.tsmobile/src/transport/pairing-keychain.tsmobile/src/transport/rpc-client.ts
…s null Clearing the presence record on the self-heal removed the only thing that stops readPairingKeychainItem's generation walk, so the next read fell back to the superseded value under an older generation -- exactly what #11430's presence record exists to prevent, and reachable for host device tokens and relay resume bundles after an Android encrypt rotation. Return null and leave the record in place; the null return alone unlatches every caller's orphan cleanup, and delete/re-pair already clear or re-stamp the record. Co-authored-by: Orca <[email protected]>
Review follow-upFixed — CodeRabbit
|
| test | pre-fix failure |
|---|---|
| stamps the close time when a wedged transport never delivers onclose | expected null to be 500 |
| does not restamp the close time when the real onclose lands after the synthesis | expected 300 to be 500 |
| keeps the live socket construct time when a superseded socket reports its close | expected null to be 400 |
Not caused by this PR — CI tests node 26 15/16
The failing shard is a pre-existing repo-wide flake, not this change.
- Failing test:
src/renderer/src/components/activity/activity-portal-readiness-loop.react185.test.tsx> "releases a latched readiness once the terminal attaches" (AssertionError: expected 'loading' to be 'unavailable'). - This PR touches only
mobile/src/transport/*. The desktop Vitest project (config/vitest.config.ts:20-27) includessrc/**,config/scripts/**,tools/**andtests/e2e/**—mobile/**is not in the shard at all, so nothing this PR changes is even loaded by that job. - The identical test fails on unrelated branches at the same time: run 30612889753 (
brennanb2025/pr2-daemon-routing-fences) and run 30610576499 (mobile-agent-status), bothtests node 26 15/16, both the same file, failing at the other assertion in the same test (expected 'unavailable' to be 'ready') — i.e. the loop bound is nondeterministic, landing short at either the line 364 or the line 372 check depending on scheduling. - It passes 5/5 locally on this branch.
The test was added in #11326 and drives a React-#185 oscillation guard through bounded requestAnimationFrame flush loops; under CI load the number of React scheduler turns per flush varies and the loop runs out of iterations. Deliberately not fixing it here: relaxing those bounds is the obvious "fix" and it would weaken the very oscillation guard the test exists to pin. That belongs in its own PR with the #11326 author.
Deliberately left
ws.onclose's log line still computesconstructToCloseMs/aliveMsagainstcurrentWsOpenedAtwhen it arrives late for a socket whose close was already synthesized; that value is nownullfor such a socket rather than misattributed to the replacement. Logging the pre-synthesis construct time there would mean carrying per-socket state, which is more machinery than a diagnostic warrants.
Full mobile src/transport suite: 62 files, 412 passed, 3 skipped. Full mobile suite: 2650 passed; the only failures are the 10 src/terminal/* files that import the gitignored, never-built terminal-webview-engine.generated.ts (untracked at origin/main too — git ls-tree origin/main mobile/src/terminal/ has no generated file — so they fail identically there). oxlint and tsc --noEmit clean apart from that same pre-existing generated-artifact error.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
mobile/src/transport/pairing-keychain.ts (1)
165-169: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winShorten the comment.
Keep the rationale, but state it in one concise sentence.
Proposed change
- // Why: Android reports an undecryptable entry as null, so failing closed here latched - // callers out of their own orphan cleanup forever; report absent instead. The presence - // record must survive — it is the only thing that keeps a later read from resurrecting - // the superseded value under an older generation. Callers clear it via delete or a - // re-pair write, so a legitimately-current older value is traded for re-pairing. + // Preserve the presence record to prevent fallback to an older generation after a null result.As per coding guidelines, comments must be concise and preferably one line.
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 08840374-d7ba-46c7-b31c-385485cc8603
📒 Files selected for processing (5)
mobile/src/transport/mobile-relay-pairing-journal-store.test.tsmobile/src/transport/pairing-keychain.test.tsmobile/src/transport/pairing-keychain.tsmobile/src/transport/rpc-client-close-diagnostics.test.tsmobile/src/transport/rpc-client.ts
🚧 Files skipped from review as they are similar to previous changes (3)
- mobile/src/transport/mobile-relay-pairing-journal-store.test.ts
- mobile/src/transport/rpc-client.ts
- mobile/src/transport/pairing-keychain.test.ts
|
Fixed the blocking regression. Both blocking items describe the same defect on the same path, so one commit covers them: What was wrong (confirmed, both items VALID)
Measured, not inferred. The new test asserts
The fixTwo lines in the retry branch, next to the existing replay compensation: // Why: close cleanup stale-bails here (ws is already null), so mark active streams for
// replay and stamp the close — otherwise this redial logs msSinceLastClose: null.
lastWsClosedAt = Date.now()
currentWsOpenedAt = nullNo new machinery, no change to the stale-guard invariant this PR established (tests 1-3 still pass unmodified). The One consequence worth naming: the 4001-close route reaches Deliberately not changed
Correction to my earlier note in this PRI claimed a superseded socket's Known non-blocking risk, stated explicitly
Accepting that: it only reaches an already-broken device, the alternative is the permanent "recovery pending" latch this PR exists to fix, and the tradeoff is documented at :165-169. #11430's anti-walk-back invariant is genuinely preserved — the presence record survives the self-heal and the second read still returns null rather than the older-generation value (pairing-keychain.test.ts:283-291). Also worth knowing
Verification
|
|
Both blocking items verified against the branch tip ( 1. Handshake-timeout fallback swallowed a late 4001 — CONFIRMED, fixedReproduced independently before fixing. New test
Fix is the suggested grace timer, factored into one helper because the identical shape existed on three paths: function closeAndReportClosed(target: WebSocket): void {
target.close()
setTimeout(() => {
if (ws === target) {
handleSocketClosed(target, { timedOut: true })
}
}, CLOSE_REPORT_GRACE_MS)
}Two deliberate choices worth calling out:
Applied to all three timeout paths, not just the handshake one. You flagged the activity-probe path ( Three pre-existing Residual window, stated plainly: this narrows the swallow window rather than closing it. A 4001 arriving more than 1 s after the handshake timeout is still discarded. Closing it completely means counting a stale 4001 against the budget from 2.
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 250cde8c-ce72-4551-97ae-b85e802f8dab
📥 Commits
Reviewing files that changed from the base of the PR and between 0c68a69c2e67b120ef9070fc21a8c78720f98e2f and 7319b41fbf3b5c99f9237103656598b8b06de6a2.
📒 Files selected for processing (5)
mobile/src/transport/cellular-connecting-label-stall.test.tsmobile/src/transport/rpc-client-close-diagnostics.test.tsmobile/src/transport/rpc-client-unauthorized-close.test.tsmobile/src/transport/rpc-client.test.tsmobile/src/transport/rpc-client.ts
🚧 Files skipped from review as they are similar to previous changes (3)
- mobile/src/transport/rpc-client-close-diagnostics.test.ts
- mobile/src/transport/cellular-connecting-label-stall.test.ts
- mobile/src/transport/rpc-client.ts
7319b41 to
cc222f1
Compare
Remediation backed out — branch reset to
|
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
mobile/src/transport/rpc-client.ts (2)
629-629: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winKeep stale close diagnostics separate from replacement timing.
ws.onclosecalculatesconstructToCloseMsbefore Line 629 reaches the stale-socket guard. A delayed event from the old socket therefore measures againstcurrentWsOpenedAtfor the replacement socket. The persisted clocks remain protected, but the emitted close diagnostic is false.Capture the opening time per
openingWs, or emit null timing fields for stale close events. Add an assertion for the delayed-close log entry.
388-391: 🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy liftPreserve and test delayed unauthorized closes after synthesized cleanup.
Synthesized cleanup makes the original socket stale. Its later 4001 event is ignored, so a revoked pairing reconnects instead of latching
auth-failed. The current test hides this defect by generating additional 4001 failures until the retry budget is exhausted.
mobile/src/transport/rpc-client.ts#L388-L391: route a delayed 4001 from the synthesized socket tohandleAuthRejectionwithout applying stale cleanup or diagnostic timing to the replacement socket.mobile/src/transport/rpc-client-synthesized-close-diagnostics.test.ts#L145-L157: assertauth-faileddirectly after the delayed 4001, then verify that timers create no replacement socket.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 87416907-7f6e-45b1-82f6-76a599ea995e
📥 Commits
Reviewing files that changed from the base of the PR and between 7319b41fbf3b5c99f9237103656598b8b06de6a2 and 6f9901c.
📒 Files selected for processing (2)
mobile/src/transport/rpc-client-synthesized-close-diagnostics.test.tsmobile/src/transport/rpc-client.ts
Move the log-only close clocks behind handleSocketClosed's stale guard so a synthesized close records them and a late onclose can't clobber the replacement. Co-authored-by: Orca <[email protected]>
6f9901c to
41f483b
Compare
Reset corrected + timestamp item fixedTwo things: 1. My earlier reset was too aggressive. I reset this branch to its first commit rather than its last reviewed-clean one, dropping 2. The P3 diagnostic-timestamp item is now fixed on top of that correct base — Verified independently before pushing:
|
Completes the 0.0.37 release attempted on 2026-08-03 (run 30791649691 failed on the version assertion). Ships the post-0.0.36 transport fixes: relay session recovery when the LAN endpoint is unreachable (#12344, #11368, #11465, #11690) and honest worktree-catalog failure states (#12235) — the released-app defect class verified live tonight. Co-authored-by: OrcaWin <[email protected]>
…shake (stablyai#11690) * fix(mobile): restore pairing self-heal and recover a wedged handshake readPairingKeychainItem threw when an Android presence record pointed at a SecureStore entry that read back null. Android reports absent and undecryptable identically, so the keystore fault the presence record was added to survive latched every caller out of its own orphan cleanup: the pairing journal store never reached its null-secret branch, stale winner-stamped metadata survived, and every later QR scan failed with "mobile relay pairing recovery pending". Report absent instead and drop the stale presence claim, still without falling back to the superseded older generation. The handshake-timeout path closed the socket with no handleSocketClosed fallback, unlike the connect-timeout and activity-probe paths. When React Native omits onclose for a wedged transport the client stayed in 'handshaking' forever with no reconnect armed. * fix(mobile): keep the presence pin when a recorded keychain item reads null Clearing the presence record on the self-heal removed the only thing that stops readPairingKeychainItem's generation walk, so the next read fell back to the superseded value under an older generation -- exactly what stablyai#11430's presence record exists to prevent, and reachable for host device tokens and relay resume bundles after an Android encrypt rotation. Return null and leave the record in place; the null return alone unlatches every caller's orphan cleanup, and delete/re-pair already clear or re-stamp the record. Co-authored-by: Orca <[email protected]> * fix(mobile): date synthesized socket closes in transport diagnostics Move the log-only close clocks behind handleSocketClosed's stale guard so a synthesized close records them and a late onclose can't clobber the replacement. Co-authored-by: Orca <[email protected]> * fix(mobile): account for delayed synthesized closes --------- Co-authored-by: Orca <[email protected]>
Completes the 0.0.37 release attempted on 2026-08-03 (run 30791649691 failed on the version assertion). Ships the post-0.0.36 transport fixes: relay session recovery when the LAN endpoint is unreachable (stablyai#12344, stablyai#11368, stablyai#11465, stablyai#11690) and honest worktree-catalog failure states (stablyai#12235) — the released-app defect class verified live tonight. Co-authored-by: OrcaWin <[email protected]>
ELI5
Your phone keeps the desktop-pairing secret in the Android keystore, plus a sticky note in ordinary storage saying "the secret is in drawer 1". If the keystore key gets corrupted or an OS backup restores the sticky note but not the keystore, Android hands back "nothing" — and it hands back the exact same "nothing" whether the drawer is empty or the contents are unreadable. We recently taught the app to treat that "nothing" as a hard error. But the app's own cleanup routine was waiting to hear "nothing" so it could throw away the leftover paperwork and let you re-pair. Now it hears an error instead, gives up, and the leftover paperwork blocks every future QR scan. There is no button that fixes it — only wiping app data. This PR makes that case say "nothing's there" again — while deliberately keeping the sticky note, so a later read can never wander into an older drawer and hand back a secret that was already replaced. The cleanup routine then tears up the paperwork and the next scan pairs.
Separately: when a connection stalls mid-handshake we close the socket and wait for the OS to tell us it closed. On a wedged iOS transport that message never arrives, so the app sits on "Connecting…" forever. We now assume the close and reconnect ourselves, like the other two timeout paths already do.
Summary
readPairingKeychainItemfailed closed on a null read at the recorded presence generation (mobile/src/transport/pairing-keychain.ts:173-181), but the module's own comment at:129notes Expo Android returns null for both absent and undecryptable entries — so the [Bug]: Couldn't save the host when pairing on Orca Mobile #6600 keystore fault, and OS restores that carry AsyncStorage without the keystore alias, took the throw.mobile/src/transport/mobile-relay-pairing-journal-store.ts:63-67clears orphan metadata only on anullsecret.mobile-relay-pairing-recovery.tsswallows the rejection and returnsdeferred, leaving winner-stamped metadata behind, after whichsaveMobileRelayPairingJournal(:32-38) rejects every later QR scan withmobile relay pairing recovery pending— permanently, with no in-app recovery.mobile/src/transport/pairing-keychain.ts:164-172). fix(mobile): recover pairing saves from Android SecureStore failures #11430's invariant is preserved permanently — the presence record is the only thing that stops the generation walk, so clearing it would let the next read fall back to the superseded value under an older generation; the read now returnsnullinstead of throwing and nothing else changes. Callers do the cleanup they already did: the journal store's metadata-less load callsdeletePairingKeychainItem, which sweeps every generation and the presence record, and a re-pair write re-stamps it. This also matches the host-token precedent, wheredoLoadHoststreats a missing token as "skip the host" (mobile/src/transport/host-store.ts:141-149).setItemAtGeneration:152) makes a still-valid older value read as absent until a delete or re-pair. That is strictly better than fix(mobile): recover pairing saves from Android SecureStore failures #11430, which threw forever in the same state, and absent-over-superseded is the invariant fix(mobile): recover pairing saves from Android SecureStore failures #11430 chose.openingWs.close()with nohandleSocketClosedfallback (mobile/src/transport/rpc-client.ts:387), unlike the connect-timeout path (:344-347) and the activity-probe path (:795-801). Withoncloseomitted,wsstayed non-null andstatestayedhandshaking:scheduleReconnectis only reached fromhandleSocketClosed,runActivityProbebails onstate !== 'connected',notifyForegroundhandles onlyconnected/reconnecting, and the relay supervisor'sneedsRecoveryexplicitly excludeshandshaking.mobile/src/transport/rpc-client.ts:388-391).Regression source
Introduced by #11430 (7db0101) — "fix(mobile): recover pairing saves from Android SecureStore failures" added the presence record and made a null read at the recorded generation throw where it previously returned null.
Introduced by #11368 (89a9d4f) — "fix(mobile): recover when half-open sockets omit close events" added the omitted-onclose fallback to the activity-probe path but not to the handshake-timeout path.
Test plan
mobilesuite via./node_modules/.bin/vitest run --config vitest.config.ts src/transport— 61 files, 409 passed, 3 skipped. Full mobile suite: 2647 passed; the only failures are 10 pre-existingsrc/terminal/*files that need the un-builtterminal-webview-engine.generated.tsartifact, unrelated to this change and failing identically onorigin/main.npx oxlintclean on all five changed files;tsc --noEmitreports only the same pre-existing generated-artifact error.Regression tests, each verified failing with the production files reverted to
origin/mainand passing with the fix:mobile/src/transport/mobile-relay-pairing-journal-store.test.ts— "self-heals an undecryptable Android secret so the next QR scan can pair": saves a winner-stamped Android journal, makes SecureStore report the entry as null, and asserts the load returnsnulland clears the metadata while the presence record survives, that the following metadata-less load sweeps the presence record, and that a fresh scan then saves and loads. Observed on unfixed code:AssertionError: promise rejected "Error: pairing keychain item is unavailab…" instead of resolving.mobile/src/transport/pairing-keychain.test.ts— "self-heals to absent, never a stale older value, when a recorded item decrypts as null" (the existing fix(mobile): recover pairing saves from Android SecureStore failures #11430 case, re-pointed): still asserts exactly onegetItemAsyncprobe so no older generation is resurrected, now assertingnull, a retained presence record, and that a second read is stillnullwith one further single probe. Observed on unfixed code:AssertionError: promise rejected "Error: pairing keychain item is unavailab…" instead of resolving.mobile/src/transport/cellular-connecting-label-stall.test.ts— "redials after a handshake timeout the wedged transport never reports as closed": newwedged-open-then-silentcarrier whoseclose()swallows the close event. Observed on unfixed code:AssertionError: expected 'handshaking' to be 'reconnecting'.mobile/src/transport/cellular-connecting-label-stall.test.ts— "escalates past 'Connecting…' while every wedged dial swallows its close event": 15 simulated minutes on the same carrier must reach the unreachable gate. Observed on unfixed code:AssertionError: expected 0 to be greater than or equal to 12(the attempt counter never moves because the client never leaveshandshaking).Found by the production release scan of v1.4.163-rc.0..origin/main.
Made with Orca 🐋