[Bug] Windows 11 + PowerShell 7.6.3: Mouse wheel scroll up jumps to top of session view during task execution
Bug Description
During task execution in a Kimi Code session, scrolling up with the mouse wheel to review earlier conversation content causes the session view to jump unexpectedly to the very top of the session window (the "Welcome to Kimi Code!" page). This happens with high probability, making it very difficult to review previous messages while a task is running.
Environment
- OS: Windows 11
- Shell: PowerShell 7.6.3
- Kimi Code Version: Latest (as of 2026-07-13)
- Terminal: Windows Terminal (default)
Steps to Reproduce
- Start a Kimi Code session (
kimiin PowerShell 7.6.3) - Initiate any task that produces multiple turns of output (e.g., ask the agent to write or modify code)
- While the task is executing and generating output, use the mouse wheel to scroll up to review earlier conversation content
- Observe: The view jumps to the top of the session (the "Welcome to Kimi Code!" welcome page) instead of scrolling smoothly through previous messages
Expected Behavior
Mouse wheel scroll should move smoothly through the conversation history, allowing the user to review earlier messages while the task continues executing in the background.
Actual Behavior
Scrolling up with the mouse wheel causes the session view to jump directly to the top of the session window (the welcome page). This makes it impossible to review intermediate messages during task execution.
Frequency
- High probability: Occurs in roughly 70-80% of scroll-up attempts during active task execution
- Does not seem to occur (or occurs less frequently) when no task is actively running
Additional Context
- This appears to be a TUI rendering/scroll buffer issue, possibly triggered by concurrent background task output updates while the user is attempting to scroll
- The jump seems to happen specifically when the session is actively receiving new messages (the scroll position is being reset/forced to bottom by new output, and then the user's scroll-up action interacts badly with this behavior)
- No keyboard shortcuts (PageUp, Up arrow) seem to trigger this same behavior consistently -- it is primarily reproducible with the mouse wheel
Confirming this bug on the latest version — and adding a data point: it reproduces in every terminal I've tried on this machine, with the VS Code integrated terminal being the worst offender.
Environment
- OS: Windows 11 Pro, Build 26200 (10.0.26200)
- Kimi Code: 0.42.0
- Node: v24.19.0
- Windows Terminal: 1.24.11911.0
- VS Code: 1.137.0
- Shells tested: PowerShell 5.1.26100.9444, Git Bash (MINGW64, git 2.55.0.windows.4), VS Code integrated terminal
What I'm seeing
Same symptom as the OP: while a task is streaming output, scrolling up with the mouse wheel (or Shift+PageUp) to read earlier messages causes the viewport to jump all the way to the top of the session instead of staying near the intended position.
Additional observations from my side:
- Not terminal-specific. It reproduces in Windows Terminal (PowerShell and Git Bash profiles) and in the VS Code integrated terminal — so this is unlikely to be a quirk of one terminal emulator.
- VS Code integrated terminal triggers it most often. In long sessions with lots of tool output, nearly every scroll-up attempt during generation yanks the view back to the top. External terminals trigger it too, just at a lower probability.
- Severity scales with session length / output rate. Short, quiet sessions are mostly fine; long sessions with frequent streaming turns make the transcript effectively unreadable until generation stops.
Impact
This significantly hurts day-to-day usability: there is no reliable way to review earlier output while the agent is working, which is exactly when you want to check what it just did. Happy to test any fix build or capture logs/recordings if that helps — just let me know what to collect.