Repository navigation
fix(mobile): stabilize visual cards and thread interactions - #759
Merged
Merged
Conversation
Keep explicit HTML Run consent per visual/version for the pairing session, preserve cached thumbnail URIs, retain the composer scroll reserve, and separate sheet entrance from drag snapping. Fixes: #719 The linked regression is the per-mount HTML Run state introduced in #719. Other interactions predate that change. Related: #758, #419, #425 Native fingerprints are unchanged for Android and iOS, including nightly. Local generation, typechecks, repository lint/format and 10 unit tests pass. Android device acceptance remains unverified; device tools could not open an emulator. Expo lint has existing failures on dev (116 errors); this change reports 112.
nixuuu
marked this pull request as ready for review
November 14, 2026 21:47
nixuuu
added a commit
that referenced
this pull request
Nov 15, 2026
Android can open the IME over the floating composer without moving the latest content. Wide Markdown blocks also need to share gesture ownership with the vertical thread list. This adds JS-only recovery for settled keyboard bounds and moves Android gesture roots to each native window. - Keep native keyboard frames for animation. Reconcile show, hide, and height changes through React Native's independent Keyboard events, including a keyboard already open at mount. Defer reconciliation during a native animation and normalize the navigation-bar inset. - Add only the difference between reconciled bounds and the keyboard inset already supplied by KeyboardChatScrollView. Retain #759's stable composer reserve and anchoring, without restoring Android autoscroll-to-zero. - Put the Android GestureHandlerRootView above both vertical and horizontal scroll views, including modal windows. Keep native directional arbitration and nestedScrollEnabled for tables, code, and diffs. The iOS root hierarchy and scroll adapter remain unchanged. Related: #759 Related: #359 Related: #571 ### Recording and history Inspected the supplied 16.05-second recording using a full 4 fps frame strip and separate keyboard/table strips. Around 0.75–1.75 s and again after 2.5 s, the keyboard covers a stationary composer and message content. The later table gestures move the feed vertically without exposing more columns. The recording cannot establish native callback delivery or exact gesture direction. Compared git log -p and the parent of b99ac10. #759 changed the reserve, fold intent, clipping, and Android autoscroll threshold; it did not change KeyboardWindow, FloatingComposer, ChatKeyboard, or HorizontalScroll. The frame-only keyboard path dates to 49db26e (#359); the block-local gesture roots date to b6dca61 (#571). These are the code paths addressed here, but the native trigger and introducing commit for the reported failures are not confirmed. There is no evidence sufficient to label #759 as the introducing regression, so this uses Related rather than Fixes. ### Verification - Passed with nice and TMPDIR=/var/tmp: bun install, repository typecheck, mobile typecheck, repository lint, format, and format:check. Changed-file Expo ESLint also passes. No UI tests added. - Full mobile Expo lint reports 112 errors and 25 warnings outside the changed files. This additional check is not claimed as passed. - Nightly fingerprints generated before/after with expo-updates fingerprint:generate are byte-for-byte identical: Android 141ef4e8c825ee4fc5d22c499402b284741b0970; iOS 83794f069934a7374461427d89b8d008cec19d97. No native module, dependency, config, plugin, or native setting changed. - Device acceptance remains unverified. Local discovery reports no Android SDK. MacStudio discovery timed out twice with no devices returned. EAS device_open failed because frameAncestors/corsOrigins require Production or Enterprise and the account has Starter. No emulator was driven, no existing AVD was modified, and no after-shots are claimed. - No EAS update/build, tags, releases, production services, reserved ports, web build, native generation, or full integration/E2E suite was run. Source and documentation are the only committed artifacts. ### Outstanding acceptance Keep this PR draft until the same installed Android Nightly native build can run this JS: check IME open/close, suggestions/emoji and IME height changes, writing visibility and latest content, fold/expand without feed displacement, horizontal/vertical drags from table text and padding, long code/diffs, and modal viewers. Repeat the existing iOS flow for parity. The fallback repairs missing animation updates; it does not change a native soft-input setting. A demonstrated need to change that setting must be reported separately. ### Copy audit (§8) No UI text changed. The change affects keyboard bounds and gesture ownership; device layout and accessibility acceptance remain open.
This was referenced Nov 16, 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.
Android thread cards can lose their Run choice when virtualized, discard loaded thumbnail URIs when leaving the viewport, and move the feed as the composer folds. Thread details also share entrance progress with drag position and have no intermediate resting position.
This change keeps HTML consent and measured heights per visual/version for the pairing session, uses a compact 112 dp gate, preserves thumbnail Image instances and synchronously restores cached file URIs on remount, retains the composer scroll reserve, and separates sheet entrance from drag offset. Thread details snap fully open or 40% down; dragging beyond 65% closes them. The scroll viewport remains usable at both positions. Visual resize updates use the existing feed anchor, and Android clipping no longer detaches native WebViews inside retained inverted cells. Distant turns remain virtualized. Web behavior is unchanged.
Fixes: #719
The linked regression is specifically the per-mount HTML Run state introduced in #719; the other behavior is pre-existing. Related: #758, #419, #425. Rebased onto #758 and retained its notice removal and
Custom HTML from the agent.gate label.Original recording
Reviewed at 12 fps; timestamps are seconds from the start, with approximately 0.08 s precision.
Validation
nice:bun install,bun run gen:check, workspacebun run typecheck, mobile typecheck, repositorybun run lint,bun run format,bun run format:check, and integration-test workspace typecheck.CANOPY_CHANNEL=nightly, usingbunx expo-updates fingerprint:generate --platform .... Nightly Android:141ef4e8c825ee4fc5d22c499402b284741b0970; Nightly iOS:83794f069934a7374461427d89b8d008cec19d97. Default-channel Android:906dc944f94eb8333fa384ed9f198834fdd30d13; iOS:138e0c6b171c82b4933e86808cdfef56da73b8c6. No dependencies, native modules, plugins, or native config changed.device_openfailed: “frameAncestors and corsOrigins are supported on Production and Enterprise plans,” while this account has Starter. No emulator or physical device could be opened, so first-tap rendering, Android WebView height/gesture handling, decoded bitmap retention, snap motion, keyboard transitions, light/dark, and TalkBack still need device review. No after-shots are claimed. Draft PR preserves this outstanding gate.No web files changed; web build was not run. Full
check:tmp/integration runs, native prebuilds/exports, EAS builds/updates, tags, and releases were not run. Original frame strips are retained outside the repository; raw extracted frames were removed. No servers, device processes, or reserved ports were used.Copy audit (§8)
No new UI wording.
Run,Retry, andCustom HTML from the agent.remain unchanged from #758; no secrets notice was reintroduced. Changes are session behavior, geometry, cache lifetime, and motion. Device layout/accessibility checks remain unverified.