Repository navigation
Conversation
Port of iOS 771e0573 and 070c2401 (opencode-ios #297, #306). - Each attachment blob is written once instead of on every draft edit, and the blob directory is cleaned only when the referenced set changes (and once after launch), not scanned on every flush. - A manifest is published only after every blob it names was written; orphaned blobs are removed only after the manifest without them lands. Before, a failed blob write still published the manifest, so a relaunch lost that attachment. - Flushes run one at a time, an older generation no longer cancels a newer flush, and removeAll drops a stale flush's results. - The attachment cache keeps only referenced bytes; delivered outbox sends expire after two minutes and let go of their bytes. Not ported: treating an unreadable state file as an error (070c2401). The app isn't Direct Boot aware, so the iOS before-first-unlock read can't happen. Verified: ported ComposerAttachmentPersistenceTests (8 of the 9 iOS cases), VM `check :feature:composer`. Before (origin/dev probe): typing 20 edits with two attachments wrote 40 blobs and scanned the directory 20 times; a failed blob write published the manifest and the relaunch lost the attachment.
Port of iOS 0058b803 and dae6547c. Recents counted only a plain Send: sending a dictation (DeferredSendReady), a queued message (QueueTapped) or a share (SharedSendRequested) left the session where it was. Every composer send now counts once its composer is empty and it isn't answering a request, so a send still waiting on uploads moves the session only when it actually goes (no early or double move). Every send but a browser Ask also donates the share suggestion, as on iOS. Before (origin/dev): a dictation send left the session below newer ones; a mid-run send waiting on an upload moved it before it was sent. Verified: vm.sh check :feature:drawer (adds everySendPathMovesTheSessionTo TheTopOfRecents, aSendWaitingOnUploadsMovesTheSessionOnceItGoes); ios-sync.py check.
Port of iOS 88915116. The model list and the default model were read one after the other, so a cold model picker waited two location-boot round trips. Both reads now start together; a missing default route still leaves the list, and a failed list cancels the default. Before (origin/dev): with the list held open, only GET /api/model was sent (the new test fails). After: both requests are in flight at once. Verified: vm.sh check :server (adds modelCatalogReadsTheListAndDefault Together); ios-sync.py check.
Port of iOS 417e5b4c (#298): the home attention read asked each hot directory for its permissions and questions one after another, so one directory booting its instance held up every other directory's dot. It now asks up to four at once (all must succeed, as before), and the drawer compares attention directories as sets so the same directories in a new order don't trigger another read. Verified: new WireRequestTests.homeAttentionAsksHotDirectoriesAtOnce fails on the old sequential read (0 of 2 requests for the second directory while the first is held) and passes now; vm.sh check :server and :feature:drawer pass; ios-sync.py check reports 0 errors.
Port of iOS a17818eb: a Markdown image outside the session's folder (``) loaded as soon as its row composed, reading through that folder's location, which boots that folder's server instance on the computer. It now shows the same Tap to load card agent images outside the folder use, and reads nothing until tapped; images inside the folder, web images and data: images load as before. Verified: TranscriptLayoutTests.aMarkdownImageOutsideTheFolderWaitsForATap (ported); vm.sh check :feature:transcript passes; on the emulator with session-lab's files checkpoint the two outside images show Tap to load cards, tapping ringedDot.png loads it and the other stays a card, and the inside image and drawer.png load untouched.
Port of the tool part of iOS 72a78460: a tool's live input, output and metadata reached the transcript whole (a megabyte of shell output on the row while it ran), then shrank to the REST read's 20 000-character and 100-item bounds once it settled. The stream now applies the same bounds (`OpenCodeToolBounds`, shared with the REST decoder), so the live row matches its settled read and huge payloads don't sit in state. The offscreen Markdown skip from that commit was already here; dropping reasoning text is deferred (the payload still decodes it). Verified: ported OpenCodeEventDecodingTests.liveToolPayloadsAreBoundedLikeTheSettledRead fails on the old decoder (unbounded output) and passes now; vm.sh check :server passes; ios-sync.py check reports 0 errors.
Port of iOS 1735b12e. With a phone-key GPT-Live route, every resumed session screen re-warmed the connection every 10 s for as long as it was up (an HTTPS request to api.openai.com on WebRTC, a fresh socket on WebSocket), so the radio never idled; a root covered by a subagent and Catch Up cards warmed too, each on its own loop. Now the screen in front warms for one minute (LiveSocketWarmer.warmWindow), a call warms as it starts (also when the project picker opens first), and a WebRTC warm-up within 5 s of the last for the same key is skipped. Covered screens and Catch Up cards don't warm. Verified: ported IdleVoiceSensorsTests (3 in :feature:voice, 1 in :feature:session); startingAPhoneKeyCallWarmsItsConnectionOnce fails on the old reducer (no warm) and passes now; vm.sh check :feature:voice :feature:session passes; ios-sync.py check 0 errors. Not exercised on the emulator (needs a real OpenAI key).
Port iOS 0d329484, 3d530299 and c93c1a47. A settled session on a healthy stream (nothing running, queued or waiting) now asks for its requests and inbox every 60 s instead of 12 s, and re-reads its transcript after 120 s instead of 20-24 s. A screen something covers (a pushed subagent, Settings, its own browser) stops its timers unless a call is live on it or an Ask is under way in its browser; the uncover reads pending work at once and the transcript only if the watchdog came due. Home's list now reaches each open screen through its reducer (ActiveSessionsRead), so a subagent the list shows running first moves its parent to the running cadence. The poll loops sleep on the watchdog clock, so tests drive them. Deferred: the inbox loop awaiting its own read, and iOS's Control Center glance receipts (iOS-only). Verified: ported 4 session and 3 Home tests from SessionFeatureTests+QuietPolling.swift; updated the existing cadence expectations as iOS did; scripts/check.sh on the Android VM passes.
Member
Author
This branch was previously deployed
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.
Ports the iOS fixes from 01eef583..911ab132 that apply to Android. Each fix is its own commit.
Deferred:
sync.jsonisn't advanced, because some commits are deferred.Verified with the ported iOS regression tests, each confirmed to fail without its fix, and a full
scripts/check.shon the Android VM. On the emulator, Markdown images from other folders showed Tap to load and loaded when tapped. The GPT-Live warm-up and polling cadence are covered by unit tests only: warm-up needs a real key, and session-lab doesn't count timed reads.