Skip to content

Fix transcript scrolling for conversation turns - #219

Draft
BNanda99 wants to merge 2 commits into
adobe:devfrom
BNanda99:fix/transcript-turn-scrolling
Draft

BNanda99 wants to merge 2 commits into
adobe:devfrom
BNanda99:fix/transcript-turn-scrolling

Conversation

@BNanda99

@BNanda99 BNanda99 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Scroll each new conversation turn into view once while preserving the user's transcript position during streamed updates and lifecycle changes.

Description

  • Capture a transcript turn ID when a user message or handoff starts and propagate it to the turn's prompt and generated response rows.
  • Anchor the first row of each new turn once, reserve bottom space for short turns, and avoid re-scrolling for streamed updates or rollbacks. Preserve manual scroll position during updates, background/resume, and rotation; reopening anchors the current turn.
  • Update the implementation guide and add unit, Compose, and lifecycle instrumentation tests for turn grouping, scrolling, and restoration.

Related Issue

Motivation and Context

Keep the current response visible without repeatedly pulling users away from older messages, and retain their reading position when streamed content or app lifecycle changes update the transcript.

How Has This Been Tested?

  • Android API 29: make unit-test-coverage - passed.
  • Android API 29: make functional-test-coverage - passed

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Biswajit Nanda and others added 2 commits November 23, 2026 20:36
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Replace the saved set of every handled turn with the handled turn and the
turn before it, which still blocks navigation back after a rollback. A turn
that arrives while the user is scrolling now counts as seen, so the
viewport stays put, including after rotation; disposal mid-animation still
resumes navigation after restoration.

Tests now prove the list state was recreated, dispose the composition
mid-animation through an explicit saveable registry, cover a turn arriving
mid-drag, and cover rollback followed by a reappearing and a new turn.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 24.61538% with 49 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...le/concierge/ui/components/messages/MessageList.kt 0.00% 49 Missing ⚠️

📢 Thoughts on this report? Let us know!

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