kimi-code icon indicating copy to clipboard operation
kimi-code copied to clipboard

[Windows/PowerShell] Terminal auto-scrolls to top after switching window while AI is generating

Open ieasir opened this issue 5 months ago • 4 comments

Bug Description

When using Kimi Code CLI in Windows PowerShell, there is a persistent scrolling bug: every time the user switches away from the terminal window and comes back while the AI model is generating/working, the terminal automatically scrolls all the way to the top of the session history. The user then has to manually scroll back down to where the AI is generating to see the latest output.

This happens every single time the window is refocused during generation.

Steps to Reproduce

  1. Open Kimi Code CLI in Windows PowerShell
  2. Start a conversation / task that takes some time to generate
  3. Switch to another window while the AI is generating
  4. Switch back to the PowerShell/Kimi Code window
  5. Observed: The terminal scrolls to the very first line of the session
  6. User must manually scroll down to the current position

Expected Behavior

The terminal should either:

  • Stay at its current scroll position (where the new content is being generated), or
  • Auto-scroll to the bottom to show the latest output (like Claude Code does)

Environment

  • OS: Windows
  • Terminal: PowerShell (Windows Terminal)
  • Kimi Code CLI: Latest version
  • No such issue exists with Claude Code CLI on the same machine/setup

Additional Context

  • This is NOT a Linux terminal issue — it's specific to Windows PowerShell/Windows Terminal
  • It happens reliably every time, not occasionally
  • The user has confirmed no similar issue with Claude Code CLI in the same environment

ieasir avatar Jul 01 '26 17:07 ieasir

I have the same issue.

LeoGZ avatar Jul 02 '26 00:07 LeoGZ

+1

fzyz999 avatar Jul 02 '26 03:07 fzyz999

+1

killpanda avatar Jul 02 '26 08:07 killpanda

Fixed in 0.22,Update kimi-code and retry

liruifengv avatar Jul 02 '26 08:07 liruifengv