mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-08-21 06:35:50 +00:00
fix(tui): stop full-screen redraw on input and slash panel toggle (#1188)
Remove the global clear-on-shrink setting so typing in the input box and opening or closing the slash panel no longer trigger a full-screen redraw.
This commit is contained in:
parent
97f9263c6f
commit
db5fbc53c0
2 changed files with 5 additions and 5 deletions
5
.changeset/fix-tui-redraw-flash.md
Normal file
5
.changeset/fix-tui-redraw-flash.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@moonshot-ai/kimi-code": patch
|
||||
---
|
||||
|
||||
Fix unnecessary full-screen redraws when typing in the input box or toggling the slash panel.
|
||||
|
|
@ -60,11 +60,6 @@ export function createTUIState(options: KimiTUIOptions): TUIState {
|
|||
|
||||
const terminal = new ProcessTerminal();
|
||||
const ui = new TUI(terminal);
|
||||
// Content shrinks (e.g. a tall inline image is replaced by a short
|
||||
// placeholder or text) can leave stale rows behind because pi-tui's
|
||||
// differential renderer does not clear them by default. Enable clearing so
|
||||
// artifacts like duplicated input boxes do not accumulate.
|
||||
ui.setClearOnShrink(true);
|
||||
|
||||
const transcriptContainer = new GutterContainer(CHROME_GUTTER, CHROME_GUTTER);
|
||||
const activityContainer = new GutterContainer(CHROME_GUTTER, CHROME_GUTTER);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue