t3code
t3code copied to clipboard
[Bug]: Viewport jumps and steps auto-collapse while reading or writing with citations during new generation
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/web
Summary
When scrolled up in a thread to review previous steps or write multiple edits using citations (quoting) while the agent is already generating a new response:
- Immediate auto-collapse while reading/citing: As soon as a turn finishes or transitions, its steps/rows immediately fold under
"Worked for ..."even though the user is actively scrolled up reading or quoting from them—yanking the text out from under the reader. - Viewport jumps during citation editing + streaming: While writing with citations (or making multiple citation-based edits) as a new response streams in, the viewport jumps away—either shooting upward when content folds/shifts or snapping down to the new generation.
Steps to reproduce
- Have a thread with multiple turns / tool steps where you are reviewing what the agent did in earlier steps.
- Scroll up to read earlier steps or select text and add multiple citations/comments in the composer while the agent is actively generating a new response (or just finishing a turn and starting the next).
- Continue reading the earlier steps or typing in the composer / citation comment box while the new response streams and previous turns settle.
Expected behavior
- While the user is scrolled up reading earlier steps or actively quoting/editing with citations, the viewport should stay anchored where the user is working—it should not jump upward or snap down to the new generation.
- Turns/steps that the user is currently viewing or quoting from should not immediately auto-collapse out from under them (or at minimum, collapsing should preserve the user's visual scroll position rather than displacing it).
Actual behavior
- Earlier turns/steps immediately fold under
"Worked for ..."while you are reading or quoting them. - Writing with citations while a new response is generating causes the view to jump upward or snap down to the new generation, interrupting multi-citation review and editing.
Impact
Major degradation or frequent failure
Version or commit
0.1.12-nightly.20261125.5230 (ca81b7b97a1c)
Environment
Windows 11 (x64), T3 Code Desktop (Nightly)
Related
- #42590 / PR #42601 — fixes live-follow re-arming when a turn folds under the reader, but explicitly leaves out keeping the reader's place across a fold or deferring/preventing folds while reading/citing.
- #36193 / PR #36194 — fixes typing in a citation comment box scrolling the whole page when the quote is scrolled out of view, but does not cover streaming/folding jumps while actively reading or making multiple citation edits.
This is the same problem as #42590, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.