Skip to content

[WIP] feat: Added scroll state support for chat-session-list navigation#3684

Closed
tiensi wants to merge 2 commits intoblock:mainfrom
tiensi:vhuang/retain-chat-session-scroll-state
Closed

[WIP] feat: Added scroll state support for chat-session-list navigation#3684
tiensi wants to merge 2 commits intoblock:mainfrom
tiensi:vhuang/retain-chat-session-scroll-state

Conversation

@tiensi
Copy link
Copy Markdown
Contributor

@tiensi tiensi commented Jul 28, 2025

CLOSED
NEW PR HERE


Summary
Added scroll state memory when navigating back from session view.

Changes

  • Added showSessionHistory to SessionsView to replace reliance on selectedSession being null
  • Passed selectedSession as a new prop to SessionListView so that it can scroll to a selected session
  • Added useEffect for scrolling in SessionListView

Request
#3664

After Changes

Screen.Recording.2025-07-27.at.8.28.48.PM.mov

Before

Screen.Recording.2025-07-27.at.8.29.32.PM.mov

@tiensi tiensi changed the title Added scroll state support for chat-session-list navigation [feat] Added scroll state support for chat-session-list navigation Jul 28, 2025
@tiensi tiensi changed the title [feat] Added scroll state support for chat-session-list navigation feat: Added scroll state support for chat-session-list navigation Jul 28, 2025
@tiensi tiensi force-pushed the vhuang/retain-chat-session-scroll-state branch from 0ac3fd2 to 2f91333 Compare July 28, 2025 03:53
@tiensi tiensi force-pushed the vhuang/retain-chat-session-scroll-state branch from 2f91333 to 921a8ab Compare July 28, 2025 04:01
@tiensi tiensi marked this pull request as ready for review July 28, 2025 04:06
Copy link
Copy Markdown
Contributor

@zanesq zanesq left a comment

Choose a reason for hiding this comment

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

I tested this locally and it didn't seem to scroll to the position after going back for me, maybe it needs to wait for the entire list to load first? Also, I think this is a bit more complex because ideally it would handle the search case also where sessions are filtered after searching with cmd/ctrl + f.

@tiensi
Copy link
Copy Markdown
Contributor Author

tiensi commented Jul 28, 2025

Thanks for the heads up, I'll test a bit more and take a look at the search use case.

@tiensi tiensi changed the title feat: Added scroll state support for chat-session-list navigation [WIP] feat: Added scroll state support for chat-session-list navigation Jul 28, 2025
@michaelneale
Copy link
Copy Markdown
Collaborator

@tiensi still updated it - you interested in this - still an issue?

@tiensi
Copy link
Copy Markdown
Contributor Author

tiensi commented Aug 8, 2025

Thanks for the reminder, let me close this for now to reduce noise until I can get a more robust fix in.

@tiensi
Copy link
Copy Markdown
Contributor Author

tiensi commented Aug 26, 2025

This was stale so I rebuilt it here: #4360

@tiensi tiensi deleted the vhuang/retain-chat-session-scroll-state branch August 26, 2025 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants