Encoding the mobile shell cache blocks the JavaScript thread for hundreds of milliseconds on large environments. Throttling reduces how often this happens, but each remaining encode still stalls input and JS-driven rendering.
Keep the existing schema validation and transforms, and yield through a cancellable native timer after every 32 encoded thread rows. The encoder is compiled once; the cache format, decoder, and final SQLite write are unchanged. Only mobile shell saves use this scheduling. Web, desktop, thread-detail caches, and server-config caches are unchanged.
A direct replay through the production encoder on Hermes used the same captured 761-thread shell and three warm trials per version. Maximum timer gaps fell from 355–367 ms to 26–35 ms, with identical JSON in every trial. Total background encoding took longer, 500–525 ms versus 355–367 ms. Incoming network events were buffered, allowed pending cache work to drain, then replayed after the experiment. A prototype trial had a 72 ms gap; the batch size does not guarantee a fixed frame budget. Project encoding and final JSON.stringify remain synchronous.

Nine focused cache-store tests pass, covering exact original output with dates/nulls/normalization/unknown-field stripping, validation failure after a yield, and cancellation of the pending host timer. Mobile typecheck and targeted lint/format pass. Source review found no blockers. Measurements used an iOS Simulator Debug development client with production JavaScript; they are not physical-device frame-rate results.
Final-bundle thread-scrolling smoke test, not a matched latency comparison:

Profiling methods, results, and limitations.
Model: GPT-6 Astra. Harness: Codex.
Thread transfer impact#
⚠️ The latest CI run did not produce a thread transfer result for
00587f6.This comment will update automatically after the next completed run.