Skip to content

Move the iOS Session Chat list and composer with the keyboard - #965

Merged
ivanfenenko merged 1 commit into
mainfrom
fix/ios-keyboard-composer-glide
Nov 2, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
fix/ios-keyboard-composer-glide

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • The composer and the end-pinned timeline now follow the keyboard on one spring that approximates the system keyboard curve (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.
  • The timeline glide (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.
  • The glide now lays out the collection view before reading the visible rows. Without that, the rows scrolled out were never detected, so the top of the list went blank while the keyboard opened.

Composer morph

  • The composer animated its own contents, but its frame comes from Session Chat, which did not animate the switch. The frame jumped to the new height, so the old content animated down from the top of the taller frame and the shell looked like it grew from the middle. The composer container now animates on OpenCodeSessionComposer.morphAnimation when 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

  • iOS and Android both covered, or the reason one is not: iOS only. These are fixes to iOS-specific animation code (the UIKit timeline host and SwiftUI keyboard avoidance). Android has not been checked for the same feel.
  • Screenshots for UI changes: checked by hand in Session Chat Playground on the iPhone Duo simulator (keyboard open and close in Long conversation and Subagents, and the permission morph in Subagents). No recording is attached yet.
  • Tests run: iOS app build only. Unit tests were not run.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

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]>
@ivanfenenko
ivanfenenko merged commit f720b7b into main Nov 2, 2026
@ivanfenenko
ivanfenenko deleted the fix/ios-keyboard-composer-glide branch November 2, 2026 21:58

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:339 high: Forced layout plus per-cell snapshots on every animated inset frame
  • ios/OpenCode Mobile/OpenCode Mobile/UI/Scroll/MessageListTimelineHost.swift:343 medium: 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:320 medium: Keyboard-glide timer has no generation, clears early or lingers (muse-spark-1.3-contributor)
  • ios/OpenCode Mobile/OpenCode Mobile/Components/Chrome/KeyboardOverlapPadding.swift:22 medium: 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:372 medium: 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:588 low: 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

@ivanfenenko ivanfenenko mentioned this pull request Nov 3, 2026
13 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant