MoonshotAI / MoonshotAI/kimi-code
resize 终端窗口后 scrollback 历史被清空、画面跳回顶部
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
先说可能是我自己用法或理解的问题,不过还是想报一下看看。
我平时用 kimi-code,一拖动终端窗口大小,上面的对话历史好像就被清掉了、画面也跳回最顶上,想往回翻之前的输出就找不到了,连续看的时候有点不方便。
我对你们的渲染实现不太懂,粗浅看感觉像是整屏重绘时把终端 scrollback 一起清掉了、resize 比较容易触发——也很可能是我理解得不对。上游 pi-tui 那边似乎也有人碰到过类似的,看着不太好弄。
就先记一下,你们方便的时候看看就行。要是这是已知的、或者有什么规避办法(比如换个终端、尽量别在长会话里 resize),也麻烦点我一下。
环境:Windows Terminal,kimi-code 0.6.0。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in Windows Terminal with kimi-code 0.6.0 by resizing during a long session. Start by tracing the terminal resize and full-screen redraw behavior, and compare it with the similar behavior reported in upstream pi-tui. Done means resizing preserves scrollback and does not jump the view to the top, or the issue is documented as an environment or upstream limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100