[Windows/PowerShell] Terminal auto-scrolls to top after switching window while AI is generating
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
- Open Kimi Code CLI in Windows PowerShell
- Start a conversation / task that takes some time to generate
- Switch to another window while the AI is generating
- Switch back to the PowerShell/Kimi Code window
- Observed: The terminal scrolls to the very first line of the session
- 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
I have the same issue.
+1
+1
Fixed in 0.22,Update kimi-code and retry