Repository navigation
Recover timed-out Iroh lanes and stale iOS sessions - #8286
Merged
Merged
Conversation
…feat-ios-pairing-route-preflight # Conflicts: # Packages/iOS/CmuxMobileShell/Sources/CmuxMobileShell/MobileShellComposite+ReconnectRoutes.swift # Packages/iOS/CmuxMobileShell/Sources/CmuxMobileShell/MobileShellComposite.swift
added 20 commits
July 17, 2026 13:01
This was referenced Jul 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Verification
swift test --package-path Packages/Shared/CmuxIrohTransport: 354 tests, 42 suites passed.swift test --package-path Packages/iOS/CmuxMobileShell: 537 tests, 49 suites passed.tsmigbuild succeeded locally at this head.Follow-up evidence
Strict prior-paired direct-only E2E exposed an existing lost initial
watchAddrevent. The client stayed pinned to Iroh and timed out without raw fallback. A regression-tested replay fix will be added to this PR before merge.Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by cubic
Recovers timed‑out Iroh lanes and stale iOS sessions, adds zero‑touch same‑account Iroh connect, and hardens startup/reconnect with server Retry‑After backoff, per‑account gates, and a shared dev broker/relay so tagged Mac+iOS builds find each other. Enforces trusted pairing (rejects untrusted tickets/routes and loopback on devices), keeps tagged pairings on one Mac, and adds stalled mobile RPC write recovery.
New Features
MobileStartupConnectionCoordinatorserializes injected attach vs stored reconnect;MobileRPCClientLifecycleGatelinearizes retirement vs new transports.Retry‑AfterviaCmxRetryAfterProviding; iOS coalesces broker‑directed retries per account (MobileAutomaticReconnectBackoffOwner).AuthEnvironment.irohBrokerBaseURLand CI vars route Debug to one staging broker/relay; rotated signer with fallback; live discovery refresh returns true only after a new verified snapshot.Bug Fixes
transportWriteTimedOut) by recycling transports; publish connection state atomically; prevent half‑installed connections.Written for commit 48706fc. Summary will update on new commits.
Summary by CodeRabbit
New Features
Bug Fixes
Tests