You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug]: Feed auto-scrolls to the bottom on every update while the agent works, causing flicker and making the bottom unreachable (Windows 0.1.62) #174
Open or start a session with a moderately long transcript (several assistant turns with tool calls).
Send a prompt that produces a long streamed response.
While the agent is still working, scroll down with the mouse wheel, and separately drag the scrollbar thumb.
Try to reach the bottom of the feed to read the newest output.
Observe the conversation repainting/flickering during the run.
Compare with a short session, where it is barely noticeable.
Expected behavior
I can scroll to the bottom of the conversation at any time, including while the agent is working. Once I scroll manually, auto-follow detaches and the viewport stays where I left it, and nothing re-arms it until I return to the bottom or press jump-to-latest. The feed repaints smoothly while tokens stream, with no visible blinking.
Actual behavior
Auto-follow never lets go. While the agent is streaming, every update forces the feed back down to the bottom, and the whole conversation repaints in a way that reads as constant flickering. Trying to scroll down fights that pull, so the bottom of the chat is unreachable and the newest output cannot be read while it is being generated. Mouse-wheel scrolling also moves in large jumps instead of continuous steps, and dragging the scrollbar thumb does not follow the cursor.
Short sessions are noticeably less affected; it gets worse as the transcript grows.
Screenshots, recordings, or sanitized logs
Environment:
Windows 11 Pro 25H2, build 26200
Single display at 1920x1080
GPU: NVIDIA GeForce RTX 5060, driver 32.0.16.1742
Model in use: <pon el modelo aquí, e.g. deepseek/deepseek-v4.1-flash>
Notes:
Also reproduces when the app is started with --disable-gpu, so it is not only a GPU-compositing artifact.
Helpers are launched with --disable-features=...,DropInputEventsWhilePaintHolding,..., so scroll input queues up behind streaming repaints.
Adding a reproduction detail that none of the reports above isolate, because it points at the pinned-to-bottom path specifically.
The jitter only happens while the viewport is pinned to the very bottom.
Reproduction (Command Code Desktop 0.1.63, Windows 10 build 19045 x64):
Open a session with a transcript long enough to scroll — several assistant turns with tool calls works.
Scroll all the way down so the newest message is fully visible and the viewport is at the bottom.
Send a prompt and let the agent stream.
While new content is being appended, the feed oscillates up and down, repeatedly, at a high rate — not one jump, a continuous shaking.
Scroll up slightly, by one or two wheel steps, so the last lines are just off screen.
The shaking stops immediately and the feed streams normally from there.
The distinguishing point: the same session, the same streaming turn, the same content rate. The only variable is whether the viewport sits exactly at the bottom. Pinned = shakes. A few pixels above the bottom = stable.
That asymmetry suggests the "follow the tail" path is fighting itself: each update grows the content, the follower scrolls to the new bottom, and then something (resize/layout measurement, or a second scroll correction in the same frame) moves it back, so the two corrections alternate for as long as updates keep arriving. A pure auto-scroll that never lets go would not produce oscillation — it would sit at the bottom. This is a two-way correction loop.
If it helps to instrument it: counting scroll-position writes per animation frame while pinned at the bottom during a stream should show repeated up and down pairs, and zero of them a few pixels higher.
Two related observations, in case they share a cause:
Still reproducing on Windows 10 Home 22H2 (build 19045.6456) with Command Code Desktop 0.1.63.
With the feed pinned to the very bottom, the chat view shakes up and down continuously while a reply streams. Nudging the viewport up by one wheel step makes it stop, so the viewport sitting exactly at the bottom is the only variable.
This is terribly annoying. Reading the newest output during a long turn turns into a constant fight with the viewport, and it is the most disruptive thing I hit in daily use.
Please fix the pinned-to-bottom scroll path. I can test a candidate build and send per-frame scroll-position instrumentation if that helps.
Static read of the shipped 0.1.63 renderer bundle — Windows 10 Home 22H2 (build 19045.6456), Command Code Desktop 0.1.63. No runtime instrumentation: everything below is grep-able in resources/app/out/renderer/assets/workspace-screen-DGk5kgiH.js. This supersedes the "two-way correction loop" guess in my earlier comment.
1. Virtuoso's own follow is disabled; a custom loop replaced it
bre=()=>!1 and followOutput: t||Ze?!1:bre → followOutput is always false.
Tail-follow is a custom rAF loop in the totalListHeightChanged handler (Wa): each frame scrollTop += tre(remaining, dt), where tre(e,t) = e - e*(1 - Math.exp(-3*t/150)), i.e. ~27% of the remaining distance per 16 ms frame, floored at 1 px.
Guards: (M.current || $.current) && !st.current && performance.now() >= be.current. M.current is the last known Virtuoso atBottom, $.current is the sticky pin, st.current is pointer-down, be.current is an input hold set to now+150 by wheel/keys.
That single guard explains the reported asymmetry exactly: wheel-up calls Mt(), which sets M.current = false, $.current = false. Both the follow loop and the secondary path below go dead, so above the bottom there is nothing left to fight and the shaking stops immediately.
2. A second, competing "go to bottom" target
_t({force, sticky}) runs its own rAF loop (up to 12 iterations while scrollHeight keeps changing) calling X.current.scrollToIndex({index:'LAST', align:'end', behavior:'auto'}).
Wa targets the container bottom (scrollHeight - clientHeight); _t targets the last item's end. The feed has components:{Header: hre, Footer: mre}, and mre renders a h-6 sm:h-8 spacer (24/32 px), so align:'end' lands 24-32 px short of the container bottom. This is the same shortfall WolfWithoutDuck measured independently in [Bug]: scroll keeps jumping around, making the app very hard to use. #20.
_t fires while pinned: on feed row-count change (re.current flag -> _t({force:true})), on the composer wrapper ResizeObserver (t && _t({sticky:true}), ref Je), and on streaming end.
Net effect at the bottom during streaming: _t snaps the viewport up by the footer gap, Wa eases it back down at 27%/frame. That is a sawtooth — hard jump up, eased return, repeated as long as triggers keep arriving — not a smooth drift. It matches "shakes up and down while anything is being streamed".
atBottomThreshold:48 is larger than that footer gap, so Virtuoso keeps reporting atBottom between the two targets; only the app's own xn() (scrollHeight - clientHeight - scrollTop <= 2) sees the difference.
3. Upward scroll compensations are deliberately dropped
rre() overwrites the scroller instance's scrollBy and gates it through nre(): top >= 0 always passes; a negative top passes only if draggingScrollbar === false and one of interacting, now - touchedAt < 300, now - pinBreakAt < 300 holds; otherwise the call is silently discarded (Gp = 300).
Virtuoso's item-resize compensation goes through scroller.scrollBy(...) (scrollByCallback), so upward corrections during streaming are swallowed. Content then shifts up by the un-compensated delta while the follow loop only recovers 27% per frame.
Compounding: ky() (anchor restore used when a row collapses/expands) writes scrollTop += delta and then dispatches cc-feed-anchor-held; the listener sets anchorHeldAt, which itself blocks upward compensation for the next 300 ms.
4. Two more writers on the same viewport
nn() ("Jump to latest") is a 320 ms cubic ease-out rAF loop that writes scrollTop unconditionally.
Hi() (focus/keyboard anchor) keeps doing scrollTop += rectDelta for up to 1200 ms or 3 stable frames (kre = 1200, yre = 3), triggered by focus inside the feed and by Tab.
5. Reduce Motion cannot help here
The only matchMedia('(prefers-reduced-motion: reduce)') check in the entire workspace bundle belongs to an unrelated height animation. Neither the follow easing, nor nn(), nor the 320 ms cubic consults it. With Reduce Motion enabled, the feed behaves identically.
6. The "hold" mode cannot be switched off
Jne() is window.electronAPI?.isFeedScrollHoldEnabled?.() !== false. That method does not exist in out/preload/index.js at all, so the flag evaluates to undefined and the behaviour is always on. It reads like an intended kill-switch that was never wired.
7. CSS / layout context
[data-virtuoso-scroller]{overscroll-behavior:none;overflow-anchor:none;scroll-behavior:auto!important} — native scroll anchoring is off, so nothing else absorbs a per-frame height change.
.cc-chat-scroller{scrollbar-gutter:stable both-edges; mask-image:linear-gradient(to bottom,transparent 0,...,black 28px)} — the 12 px top fade makes any few-pixel shift read as a flicker.
increaseViewportBy is {top:800,bottom:800} normally, but {top:1e9,bottom:1e9} when screenReaderMode is on/auto (P = KQ()), i.e. every row mounted at once — a different performance regime that would amplify all of the above.
Not measured: with no runtime trace, the relative contribution of (2) vs (3) and the exact amplitude/rate are unconfirmed. Item heights in the size tree also swing on re-measure, which is what keeps re-triggering both paths.
Please prioritise a fix for the pinned-to-bottom path. It is by far the most disruptive thing in daily use.
Activity
magicprinc commentedon Nov 24, 2026
Adding a reproduction detail that none of the reports above isolate, because it points at the pinned-to-bottom path specifically.
The jitter only happens while the viewport is pinned to the very bottom.
Reproduction (Command Code Desktop 0.1.63, Windows 10 build 19045 x64):
The distinguishing point: the same session, the same streaming turn, the same content rate. The only variable is whether the viewport sits exactly at the bottom. Pinned = shakes. A few pixels above the bottom = stable.
That asymmetry suggests the "follow the tail" path is fighting itself: each update grows the content, the follower scrolls to the new bottom, and then something (resize/layout measurement, or a second scroll correction in the same frame) moves it back, so the two corrections alternate for as long as updates keep arriving. A pure auto-scroll that never lets go would not produce oscillation — it would sit at the bottom. This is a two-way correction loop.
If it helps to instrument it: counting scroll-position writes per animation frame while pinned at the bottom during a stream should show repeated up and down pairs, and zero of them a few pixels higher.
Two related observations, in case they share a cause:
Environment: Command Code Desktop 0.1.63, Windows 10 (build 19045) x64.
magicprinc commentedon Nov 25, 2026
Still reproducing on Windows 10 Home 22H2 (build 19045.6456) with Command Code Desktop 0.1.63.
With the feed pinned to the very bottom, the chat view shakes up and down continuously while a reply streams. Nudging the viewport up by one wheel step makes it stop, so the viewport sitting exactly at the bottom is the only variable.
This is terribly annoying. Reading the newest output during a long turn turns into a constant fight with the viewport, and it is the most disruptive thing I hit in daily use.
Please fix the pinned-to-bottom scroll path. I can test a candidate build and send per-frame scroll-position instrumentation if that helps.
magicprinc commentedon Nov 25, 2026
Static read of the shipped 0.1.63 renderer bundle — Windows 10 Home 22H2 (build 19045.6456), Command Code Desktop 0.1.63. No runtime instrumentation: everything below is grep-able in
resources/app/out/renderer/assets/workspace-screen-DGk5kgiH.js. This supersedes the "two-way correction loop" guess in my earlier comment.1. Virtuoso's own follow is disabled; a custom loop replaced it
bre=()=>!1andfollowOutput: t||Ze?!1:bre→followOutputis alwaysfalse.totalListHeightChangedhandler (Wa): each framescrollTop += tre(remaining, dt), wheretre(e,t) = e - e*(1 - Math.exp(-3*t/150)), i.e. ~27% of the remaining distance per 16 ms frame, floored at 1 px.(M.current || $.current) && !st.current && performance.now() >= be.current.M.currentis the last known VirtuosoatBottom,$.currentis the sticky pin,st.currentis pointer-down,be.currentis an input hold set tonow+150by wheel/keys.Mt(), which setsM.current = false, $.current = false. Both the follow loop and the secondary path below go dead, so above the bottom there is nothing left to fight and the shaking stops immediately.2. A second, competing "go to bottom" target
_t({force, sticky})runs its own rAF loop (up to 12 iterations whilescrollHeightkeeps changing) callingX.current.scrollToIndex({index:'LAST', align:'end', behavior:'auto'}).Watargets the container bottom (scrollHeight - clientHeight);_ttargets the last item's end. The feed hascomponents:{Header: hre, Footer: mre}, andmrerenders ah-6 sm:h-8spacer (24/32 px), soalign:'end'lands 24-32 px short of the container bottom. This is the same shortfall WolfWithoutDuck measured independently in [Bug]: scroll keeps jumping around, making the app very hard to use. #20._tfires while pinned: on feed row-count change (re.currentflag ->_t({force:true})), on the composer wrapperResizeObserver(t && _t({sticky:true}), refJe), and on streaming end._tsnaps the viewport up by the footer gap,Waeases it back down at 27%/frame. That is a sawtooth — hard jump up, eased return, repeated as long as triggers keep arriving — not a smooth drift. It matches "shakes up and down while anything is being streamed".atBottomThreshold:48is larger than that footer gap, so Virtuoso keeps reportingatBottombetween the two targets; only the app's ownxn()(scrollHeight - clientHeight - scrollTop <= 2) sees the difference.3. Upward scroll compensations are deliberately dropped
rre()overwrites the scroller instance'sscrollByand gates it throughnre():top >= 0always passes; a negativetoppasses only ifdraggingScrollbar === falseand one ofinteracting,now - touchedAt < 300,now - pinBreakAt < 300holds; otherwise the call is silently discarded (Gp = 300).scroller.scrollBy(...)(scrollByCallback), so upward corrections during streaming are swallowed. Content then shifts up by the un-compensated delta while the follow loop only recovers 27% per frame.ky()(anchor restore used when a row collapses/expands) writesscrollTop += deltaand then dispatchescc-feed-anchor-held; the listener setsanchorHeldAt, which itself blocks upward compensation for the next 300 ms.4. Two more writers on the same viewport
nn()("Jump to latest") is a 320 ms cubic ease-out rAF loop that writesscrollTopunconditionally.Hi()(focus/keyboard anchor) keeps doingscrollTop += rectDeltafor up to 1200 ms or 3 stable frames (kre = 1200,yre = 3), triggered byfocusinside the feed and byTab.5. Reduce Motion cannot help here
The only
matchMedia('(prefers-reduced-motion: reduce)')check in the entire workspace bundle belongs to an unrelated height animation. Neither the follow easing, nornn(), nor the 320 ms cubic consults it. With Reduce Motion enabled, the feed behaves identically.6. The "hold" mode cannot be switched off
Jne()iswindow.electronAPI?.isFeedScrollHoldEnabled?.() !== false. That method does not exist inout/preload/index.jsat all, so the flag evaluates toundefinedand the behaviour is always on. It reads like an intended kill-switch that was never wired.7. CSS / layout context
[data-virtuoso-scroller]{overscroll-behavior:none;overflow-anchor:none;scroll-behavior:auto!important}— native scroll anchoring is off, so nothing else absorbs a per-frame height change..cc-chat-scroller{scrollbar-gutter:stable both-edges; mask-image:linear-gradient(to bottom,transparent 0,...,black 28px)}— the 12 px top fade makes any few-pixel shift read as a flicker.increaseViewportByis{top:800,bottom:800}normally, but{top:1e9,bottom:1e9}whenscreenReaderModeison/auto(P = KQ()), i.e. every row mounted at once — a different performance regime that would amplify all of the above.Not measured: with no runtime trace, the relative contribution of (2) vs (3) and the exact amplitude/rate are unconfirmed. Item heights in the size tree also swing on re-measure, which is what keeps re-triggering both paths.
Please prioritise a fix for the pinned-to-bottom path. It is by far the most disruptive thing in daily use.
@aliarain @ahmadawais