zot/internal/agent/modes
patriceckhart 43da5e5249 tui: reset auto-follow baseline on new turn to stop viewport jump
startTurnWithImages clears the previous turn's tool-call overlay and
pins scrollOffset to 0. Without also resetting prevChatLen/prevChatCols,
the auto-follow guard on the next render sees a synthetic negative
delta equal to the number of overlay rows that were cleared, and
nudges scrollOffset by that amount. On terminals that mirror zot's
chat-pane scroll into their native scrollbar this is visible as a
viewport jump the instant the user presses enter on a follow-up
prompt.

Zero them out in the same locked block so the guard short-circuits
on the very next render, the same way it already does on column
resize. The legitimate "user scrolled up while content streams in"
case is unaffected because prevChatLen is repopulated on that first
post-submit render.
2026-05-12 20:43:43 +02:00
..
telegram Improve Telegram status and stop commands 2026-05-07 19:05:57 +02:00
btw_dialog.go tui: tune user bubble colors 2026-05-03 19:23:24 +02:00
changelog_dialog.go tui: user bubble layout, OSC 11 theme detection, image footprint fix 2026-05-03 10:18:48 +02:00
confirm_dialog.go fix(cli): load extensions in print and json modes too 2026-04-19 20:00:36 +02:00
dialog_frame.go fix(tui): cell-aware width math for dialog header rules + add /btw 2026-04-19 13:47:39 +02:00
ext_panel_dialog.go feat(ext): interactive extension panels + persistence 2026-04-22 08:53:21 +02:00
file_suggest.go feat(tui): @ file picker with directory navigation 2026-04-25 10:52:20 +02:00
help.go style: replace middle-dot separators with ascii hyphens 2026-04-21 17:39:08 +02:00
image_scroll_test.go fix(tui): stabilize inline image scrolling 2026-04-26 11:20:25 +02:00
interactive.go tui: reset auto-follow baseline on new turn to stop viewport jump 2026-05-12 20:43:43 +02:00
json.go feat(tui): live-stream file body during write/edit tool calls 2026-04-20 08:37:14 +02:00
jump_dialog.go style: replace middle-dot separators with ascii hyphens 2026-04-21 17:39:08 +02:00
login_dialog.go add deepseek provider (api-key, openai-compatible v4 catalog) 2026-05-10 16:49:31 +02:00
logout_dialog.go feat(auth,tui): dark login pages + /logout picker 2026-04-19 20:14:22 +02:00
model_dialog.go feat: provider labels in login/logout, graceful unknown provider fallback, model picker filtering 2026-04-25 19:25:51 +02:00
print.go initial commit 2026-04-17 20:36:38 +02:00
rescue_dialog.go add Google Gemini provider 2026-05-07 21:15:34 +02:00
session_dialog.go fix: session dialog highlight doubling, row overflow, and resize flicker 2026-05-09 22:55:45 +02:00
session_ops_dialog.go feat: changelog on update, full-width highlights, @ file picker docs 2026-04-25 11:24:09 +02:00
session_tree_dialog.go feat(session): /session fork + /session tree 2026-04-20 11:10:56 +02:00
settings_dialog.go interactive: load resumed sessions asynchronously 2026-05-04 15:47:55 +02:00
skills_dialog.go tui: user bubble layout, OSC 11 theme detection, image footprint fix 2026-05-03 10:18:48 +02:00
slash_suggest.go Hide /jail when sandbox is already jailed 2026-05-11 18:11:18 +02:00
slash_suggest_test.go Hide /jail when sandbox is already jailed 2026-05-11 18:11:18 +02:00
spinner.go lowercase funny working lines 2026-05-08 08:13:30 +02:00
telegram_dialog.go feat(tui): /telegram connect | disconnect | status 2026-04-20 09:18:04 +02:00
update_banner.go feat: custom models with baseUrl + domain migration to www.zot.sh 2026-04-24 14:00:31 +02:00
welcome.go tui: unify accent bar, narrow status split, restore session usage 2026-04-27 19:51:36 +02:00