Repository navigation
Description
GUI version
0.1.63
Operating system
Windows
Reproduction steps
- Open the Command Code Desktop application on Windows.
- Start a new conversation or open an existing one.
- Send a prompt and wait for the AI to start generating a response or working on a task.
- Try scrolling up and down manually using the mouse wheel while the AI is generating content.
- Observe that the scroll position jumps unexpectedly and interferes with manual scrolling.
- Try scrolling all the way to the bottom of the conversation.
- When manual scrolling fails to reach the bottom, press the End key on the keyboard to access the latest generated content.
The issue occurs intermittently, regardless of the conversation length.
Expected behavior
- Manual scrolling should be smooth, stable, and responsive.
- Automatic scrolling should pause when the user manually scrolls away from the bottom of the conversation.
- Automatic scrolling should resume only when the user returns to the bottom.
- The scroll position should not jump unexpectedly while the AI is generating content.
- Users should always be able to reach the bottom of the conversation using the mouse wheel or scrollbar without having to press the End key.
- New content should not interfere with manual navigation through the conversation.
Actual behavior
The Command Code Desktop application on Windows has a persistent scrolling issue while the AI is generating responses or working on tasks.
The scroll position frequently jumps unexpectedly, even without user interaction. Automatic scrolling conflicts with manual scrolling, making it difficult to read responses and follow the AI's progress.
Sometimes, it becomes impossible to scroll all the way to the bottom of the conversation using the mouse wheel. When this happens, I have to press the End key on my keyboard to reach the bottom and see the latest generated content.
The issue occurs regardless of the conversation length and only happens while the AI is generating content or executing tasks.
I previously reported this issue on the official Command Code Discord forum on October 28, 2026, but the problem still persists in GUI version 0.1.63.
Other users have also reported similar scrolling issues on Discord.
This bug significantly affects the usability of the desktop application and disrupts my daily workflow.
Could you please prioritize investigating and fixing this issue?
Thank you for your attention and continued development of Command Code!
Screenshots, recordings, or sanitized logs
Safety check
- I removed credentials and private project information from this report.
Activity
hilucas commentedon Nov 20, 2026
same issues in windows version v0.1.63
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. Detailed reproduction and the two-way-correction hypothesis are in #174.
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 this. 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