Repository navigation
Description
Summary
While a response is streaming, the conversation feed scrolls with heavy stutter / dropped frames, and scrolling up with the mouse bounces back to the newest content — so long streamed outputs can't be read in real time. Idle scrolling is fine; this only happens while tokens are arriving.
Environment
- Command Code desktop 0.1.54 (auto-updated from 0.1.53 while testing — not fixed in 0.1.54)
- macOS 27.0 (build 26A428)
- Apple M1 (8-core); built-in Retina display 4480 x 2520 at native scaling, single display
- App is native arm64 (
Mach-O thin (arm64);sysctl.proc_translated= 0) - GPU acceleration on — helper runs as
Command Code Helper --type=gpu-process
Steps to reproduce
- Open a session with a large transcript (observed around 3 MB / ~500 entries).
- Send a prompt that produces a long streamed response.
- While tokens are still arriving, scroll up with the mouse/trackpad.
Result: the feed stutters and snaps back to the bottom; earlier lines can't be read.
Expected
- Scrolling stays smooth while streaming.
- Scrolling up detaches from the auto-follow instead of bouncing back.
What was ruled out
- Rosetta / translation — app is native arm64. It was previously running the Intel build; switching to the Apple-Silicon build did not fix this streaming scroll stutter.
- Software rendering — GPU process is present and GPU-compositing flags are active on the renderer.
- Non-native display scaling — display is at its native mode.
- A settings workaround — the config registry exposes no scroll / auto-follow / transcript-render option.
- A newer version — 0.1.54 is current.
Likely suspect
Helpers are launched with --disable-features=...,DropInputEventsWhilePaintHolding,.... With that feature disabled, input events aren't shed while a paint is held, so scroll input queues during heavy streaming repaint — which matches the reported "scroll up and it bounces back" behavior.
Requests
- Add a scroll-follow toggle, or detach auto-follow as soon as the user scrolls up.
- Consider disabling elastic overscroll for the feed (
overscroll-behavior: none). - Consider re-enabling
DropInputEventsWhilePaintHolding. - Investigate repaint/relayout cost for large transcripts while streaming.
Diagnostics
- During streaming the renderer is the hot process; on the pre-arm64 (Intel) build the main process spiked to ~100% CPU.
- No crash reports for the app; the
~/.commandcodedata directory is small (no obvious leak). - Trace ids (for support):
99e8f6007c859816e280fac896c81bad,d0da42a640d1a24a1b6d1a1c7dcb2588
Activity
15844229646 commentedon Oct 19, 2026
window 也存在这个问题
catchem88 commentedon Oct 21, 2026
+1 this is quite annoying
aliarain commentedon Oct 27, 2026
Thanks for the detailed report. We fixed both parts: scrolling up while a reply streams now stays where you put it, and each streamed word costs far less to draw, so scrolling stays smooth in long chats. This ships in an upcoming release. If you still see it after updating, please let us know.
aliarain commentedon Oct 28, 2026
The bounce back while streaming is fixed for the next desktop update. We’re also working on the stutter. Please update when it lands and tell us if it still happens
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) — the full breakdown with symbols is in #174. Short version, all grep-able in
resources/app/out/renderer/assets/workspace-screen-DGk5kgiH.js:bre=()=>!1); tail-follow is a custom rAF loop intotalListHeightChangedthat advances ~27% of the remaining distance per frame (tre,e - e*(1-exp(-3*dt/150)))._t) callsscrollToIndex({index:'LAST', align:'end'})on feed row-count change and on the composerResizeObserver. It targets the last item's end, which is 24-32 px short of the container bottom (theFooterspacer), while the follow loop targetsscrollHeight - clientHeight. Snap up, eased return down, repeated while streaming — the up/down shaking.scrollByis patched to discard negative offsets unless a pointer/touch/pin-break happened within 300 ms (Gp=300).prefers-reduced-motionis never consulted on this path, so Reduce Motion changes nothing.isFeedScrollHoldEnabledis called by the renderer but does not exist inout/preload/index.js, so the flag isundefinedand the hold mode is always on.Please fix the pinned-to-bottom path — it is the most disruptive thing in daily use.
@aliarain @ahmadawais