Repository navigation
Rebuild the composer's autocomplete list with standard Compose - #140
Merged
Merged
Conversation
The @ and / suggestion list ran on a frame-by-frame spring simulation ported from iOS (row collapse, highlight glide, rubber-band scroll and a chip flight into the text). It is now a reverse-layout LazyColumn: rows enter, leave and move with animateItem, the panel's height animates on the Motion roles (panelOpen/panelClose, layout while filtering), the highlight is an animateColorAsState background, and scrolling and overscroll are the platform's. Reduce Motion fades and snaps through the same roles. A picked row's chip now simply appears in the text. Rows, ordering, filtering, selection, dismissal, copy, the 5.5-row max height, hardware-key navigation, TalkBack semantics and the inline chip bridge are unchanged; the reducer and state are untouched. Deleted: AutocompleteSimulation, AutocompleteMotionController (+ driver), AutocompleteSpring, AutocompleteTouchTracker, AutocompleteParameters, the chip flight overlay and composer anchor, the flight-only highlight tones, and the order/exit/gesture tunables. Ported tests that only tested the simulation are dropped (ComposerAutocompleteMotionTests and the glass growth and edge-snapping cases in ComposerAutocompleteTests); the parity rows say so. AGENTS.md records the list's motion as Android-native on purpose. Verified: vm.sh check (all modules). On the emulator with session-lab, against dev: @ and / open, filtering, zero results, scroll to both ends, tap pick and pick while appearing, dismiss by deleting the trigger, back, arrow keys, light/dark, font scale 1.3, animator scale 5 and 0, keyboard height changes with the list open.
# Conflicts: # feature/session/src/main/kotlin/ai/opencode/feature/session/SessionViewComposer.kt
# Conflicts: # AGENTS.md
Closed
This branch was previously deployed
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.
The @ and / suggestion list in the composer is now a standard
LazyColumninstead of a frame-by-frame spring simulation ported from iOS. Rows, ordering, filtering and selection are unchanged; the motion differs in small ways, listed below. The biggest is that the chip "flight" is gone on purpose: a picked row's chip now simply appears in the text, like the transcript's dropped send flight (#62).autocomplete-before-after.mp4
Left:
dev. Right: this branch. Segments: open, filter, scroll, pick, highlight (arrow keys, both slowed 4x in editing), dark.Open list, before | after:
Now
animateItem; the panel height animates onMotion.panelOpen/panelClose, and onMotion.layoutwhile filtering; the highlight is ananimateColorAsStatebackground; scroll and overscroll are the platform's. Reduce Motion fades and snaps through the same roles.AutocompleteSimulation,AutocompleteMotionController(+ driver),AutocompleteSpring,AutocompleteTouchTracker,AutocompleteParameters, the flight overlay and its composer anchor, and the motion-only tunables. Ported tests that only covered the simulation are dropped (noted in the parity rows). AGENTS.md now lists this motion as Android-native on purpose.Visible differences from
devdevit jumped on arrow keys and glided when filtering moved it.Verified
vm.sh check(all modules).dev: @ and / open, filtering, zero results, scroll to both ends, tap pick and pick while appearing, dismiss by deleting the trigger, back (same asdev), arrow keys, light/dark, font scale 1.3, animator scale 5 and 0 (Reduce Motion), keyboard height changes with the list open.devand not touched here: a second chip can draw over the first.