Repository navigation
Isolate server switches on iOS and Android - #1104
Merged
Merged
Conversation
Bind the new connection before live caches reload, tie loads, sends, drafts and cache writes to their profile, protect profile removal, and stop Home waiting on the health check.
ivanfenenko
marked this pull request as ready for review
November 23, 2026 07:34
There was a problem hiding this comment.
Automated review: no finding that 2+ of 2 passes agreed on.
4 finding(s) from a single pass, not posted
android/app/src/main/java/dev/opencode/mobile/data/local/sessioncache/SessionCacheDao.kt:166medium: Transcript trim counts empty placeholder rows (muse-spark-1.3-contributor)android/app/src/main/java/dev/opencode/mobile/domain/connection/ConnectionSessionCoordinator.kt:283medium: SSE rebuild closes a new server client opened in the gap (muse-spark-1.3-contributor)ios/OpenCode Mobile/OpenCode Mobile/Domain/Connection/ActiveConnectionManager.swift:65medium: Pinned iOS capabilities drop v2 features (muse-spark-1.3-contributor)android/app/src/main/java/dev/opencode/mobile/data/local/DataStoreComposerDraftStore.kt:85medium: saveDetached cleanup drops an equal queued detached save, losing the draft write (glm-5.3-flash)
opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.335 · 1 pass(es) failed
A wake was broadcast with no replay, so one arriving after the retry loop checked for it but before it subscribed was dropped. The stream then sat out the full auth backoff instead of reconnecting, which also made DefaultForegroundEventStreamTest fail intermittently. Count wakes instead, so the wait sees any wake newer than the attempt.
This was referenced Nov 23, 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.
Summary
Makes a server switch one boundary on iOS and Android, so work started for one server cannot read from, write to, or paint on another.
Checks
:app:assembleDebug,:hexcode:assembleDebug, andtestDebugUnitTestpass (4,687 tests, 0 failed). ktlint reports only existing violations, none on changed lines.xcodebuild analyzepasses.Evidence
None yet. This changes behavior across a live server switch, so it still needs a scenario-harness pass on both platforms before it is marked ready.
Issue
No linked issue.
Risks / Follow-ups
/global/health. A slower server that changed protocol is corrected by the next full detection.Package.resolvedonmainis stale, and local iOS builds rewrite it. That change is not included here.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.