In mergeTokensByRowId, each tokensByRowId[rowId] = tokens assignment
triggered the didSet observer (Swift Dictionary is a value type), causing
tokenAttributedStringsByRowId.removeAll(), clampHorizontalOffsets(), and
setNeedsDisplayForVisibleBounds() to fire N times — once per patched row.
This defeated the incremental cache invalidation the method intended and
multiplied layout work for large token patches.
Add a _suppressTokensByRowIdDidSet flag so the didSet observer is skipped
during the merge loop. The method already performs its own targeted cache
invalidation (removeValue per row) and calls clampHorizontalOffsets() and
setNeedsDisplayForVisibleBounds() once at the end.
- Add iOS review diff module, parser, and highlighter support
- Wire mobile native lint tooling into CI and local docs
- Include fixtures and tests for the new diff pipeline
- Add a debug diff scratch route with fixture-driven highlighting
- Wrap review screen in a shared highlighter provider
- Document profiling steps and add a Hermes profiling script
- Skip remote fast-mode selection changes when the current provider is `opencode`
- Keep existing model selection state unchanged for unsupported providers
- Tighten environment/thread ID typing across mobile and shared state
- Track terminal metadata and subprocess status when attaching sessions
- Update launch and status flows for remote terminals
- Use variant-specific Expo schemes for development, preview, and production
- Preserve the production `t3code` scheme while fixing remote-connect routing
- Add syntax-highlighted diff rendering and cached review state
- Support pasted/attached images in review comments
- Improve mobile review sheet handling for large or partial diffs
Co-authored-by: codex <[email protected]>