Repository navigation
fix(mobile): stabilize composer and replace tray popovers - #909
Merged
Merged
Conversation
Keep new turns above the composer on iOS while following latest, retain a round pressed state for Show latest, and prevent keyboard focus cycles from inflating the input. Use scrollable queue and subagent sheets with visible Steer labels and preserve navigation through dismissal. Fixes: #730
nixuuu
enabled auto-merge (squash)
November 17, 2026 06:29
nixuuu
added a commit
that referenced
this pull request
Nov 17, 2026
Opening or dismissing the iOS keyboard can synchronously re-enter the scroll handler while `useFollowingList` is correcting native anchor displacement. If UIKit reports a clamped offset, the nested handler dispatches another `scrollTo` before the first command returns, overflowing the UI-runtime stack. The reproduced iOS error contains hundreds of repeated `track → scrollTo → onScroll` frames. Guard automatic corrections for the lifetime of the native command. Nested events retain the actual native offset and following intent without dispatching another correction. Increment the existing correction revision before dispatch so composer gesture tracking discards corrected events; release the guard in `finally`. Update the mobile behavior documentation. Fixes: #909 Validation: - Mobile TypeScript check, targeted oxlint and ESLint, formatting and diff checks passed. - Expo's iOS Babel transform successfully generated the edited worklets. - A scratch probe using the actual callback source reproduced stack overflow before the change (3,483 nested commands) and one command afterward. Checked clamped/successful feedback, reader scrolling, disclosure anchoring, cleanup after dispatch failure and subsequent corrections. This probe does not execute UIKit or a native worklet runtime; no probe artifacts are committed. - The reporter verified the fix on their physical iPhone and confirmed the application no longer crashes when reproducing the issue. - All 15 CI checks passed for commit 0672d9a.
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.
Change
Early mobile messages can end up behind the composer, repeated keyboard focus cycles can inflate the input, and tray popovers leave little room for queued messages and subagents.
Fixes: #730
Verification
Copy audit (
docs/copy.md§8): passed. Icon-only steer → icon plus Steer makes the action readable; the existing accessible description remains. Sheet titles and close labels use sentence case and established terms. Short and long text were checked at phone and wide widths; no new errors, empty states, dependencies or decorative copy.