mirror of
https://github.com/patriceckhart/zot.git
synced 2026-06-28 14:23:41 +02:00
opening a session via /sessions (or starting with --continue / --resume / --session) used to drop the user at the live tail (scrollOffset = 0). on a long session that means the visible viewport showed only the last few rows of the final assistant reply -- the rest of the conversation was loaded into the agent correctly but invisible without scrolling. users read this as 'resume only restored a one-liner'. now after both code paths we compute the row offset of the last user message and park the viewport so that user prompt sits at the top of the chat area, with the assistant's last reply right below. older history is one scrollup away; pgdn or arrows snap to the live tail. the existing 'viewing turn N of M' footer shows up automatically since parkedTurn / parkedTotal are set. shared scrollToLastTurn helper used by both the /sessions picker (applySessionSelection) and Run() startup. the old applySession code is now a thin wrapper that just invalidates caches and delegates to scrollToLastTurn. |
||
|---|---|---|
| .. | ||
| agent | ||
| assets | ||
| auth | ||
| core | ||
| provider | ||
| tui | ||