Repository navigation
Move the iOS Session Chat list and composer with the keyboard - #965
Merged
Merged
Conversation
The composer and the end-pinned timeline now follow the keyboard on one spring that matches its curve, instead of the composer snapping and the rows trailing on a bouncy spring. The timeline glide shifts every row by one distance, so rows the keyboard reveals or hides move with the rest instead of popping in or blanking out. The composer's frame also animates when it morphs between prompt and a request, so its bottom edge stays put and the top grows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Automated review: 2 finding(s) that 2+ of 3 passes agreed on.
Outside the diff lines:
ios/OpenCode Mobile/OpenCode Mobile/UI/Scroll/MessageListTimelineHost.swift:339high: Forced layout plus per-cell snapshots on every animated inset frameios/OpenCode Mobile/OpenCode Mobile/UI/Scroll/MessageListTimelineHost.swift:343medium: Uniform FLIP uses median shift but index-path/item mapping can change between capture and glide, misplacing rows
4 finding(s) from a single pass, not posted
ios/OpenCode Mobile/OpenCode Mobile/UI/SessionChat/SessionChatView.swift:320medium: Keyboard-glide timer has no generation, clears early or lingers (muse-spark-1.3-contributor)ios/OpenCode Mobile/OpenCode Mobile/Components/Chrome/KeyboardOverlapPadding.swift:22medium: The new "keyboard" spring is ~6x overdamped and runs far slower than the keyboard (deepseek-v4.1-flash)ios/OpenCode Mobile/OpenCode Mobile/UI/SessionChat/SessionChatView.swift:372medium: On iOS 17 the timeline and composer use different animations for the same keyboard move (deepseek-v4.1-flash)ios/OpenCode Mobile/OpenCode Mobile/UI/SessionChat/SessionChatView.swift:588low: Dictation composer morph animates the composer but the timeline keeps the inset spring (glm-5.3-flash)
opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.089 · 1 pass(es) stopped early
13 tasks done
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.
Summary
Smooths how the iOS Session Chat timeline and composer move when the keyboard opens or closes, and when the composer morphs into a request.
Keyboard
KeyboardOverlap.animation). Before, the composer snapped to its final place at once while the rows trailed on the inset spring (0.48 s, damping 0.72). The rows came up from far below the composer and overshot.MessageListTimelineHost.glideRows) is now a uniform FLIP. Every row on screen after the inset change starts back by the same distance and glides home together, so rows the keyboard reveals at the top slide in with the rest instead of appearing already in place under the old rows. Rows the change scrolls out glide away as snapshots instead of blanking. Rows are matched by index path rather than by cell, because the inset change can hand a cell to a different item.Composer morph
OpenCodeSessionComposer.morphAnimationwhen the composer kind or dictation changes, so the bottom edge stays put and the top grows.Other inset changes on a pinned list, such as a pill row appearing, still use the existing spring, now with the uniform glide.
Checks
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.