CLI TUI: terminal resize triggers full re-render of entire conversation history; unusable at high context usage
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
macOS 26.4.1 (Apple Silicon)
Kiro Version
kiro-cli 2.2.2
Bug Description
Every time the terminal emulator is resized, the Kiro CLI TUI re-renders the entire conversation history from the first turn to the last — the screen visibly scrolls through every message again. The redraw duration scales with total conversation length:
- At low context usage, it is just a brief flash.
- At around 70% context usage and above, a single resize event takes several seconds, during which the TUI is fully unresponsive (cannot scroll, cannot type, cannot cancel).
- 100% reproducible — any resize event, no matter how small, triggers the full replay.
This looks like the same underlying root cause as #7471 (TUI redraws the entire history on every render cycle instead of doing a differential / viewport-based update), but I am opening a separate report because the trigger surface is different enough to warrant its own tracking:
- #7471 focuses on
--resumeand the normal render loop, with measured ~4 full-screen redraws at resume time. - This report is specifically about live resize events during an ongoing session. Resize is an extremely common event in real-world use (drag to resize window, toggle full-screen,
tmux split-window/resize-pane, toggle a sidebar in a GUI terminal, show/hide on-screen keyboard on a mobile SSH client, rotate the screen). Any of these currently stalls the TUI.
Feel free to close as a duplicate of #7471 if preferred; linking here for the added signal and the resize-specific repro.
Steps to Reproduce
- Start a
kiro-clichat session in the terminal. - Keep chatting (or paste a long document and ask several multi-turn follow-ups) until
/contextreports > 70% usage. - Trigger a resize, e.g.:
- Drag the terminal window border.
- Toggle full-screen.
tmux split-windoworresize-pane.- On a mobile SSH client: rotate the screen, or show/hide the software keyboard.
- Observe: the whole conversation visibly scrolls past again from the earliest turn down to the latest. Input and scrolling are blocked for the full duration of the redraw (several seconds at 70%+ context usage, worse as context grows).
100% reproducible; the higher the context usage, the longer the stall.
Expected Behavior
A resize event should be a cheap, near-instant layout reflow:
- Existing buffer content re-wraps to the new width without re-emitting historical turns.
- No visible scroll of prior messages.
- Resize latency should be independent of conversation length — whether the context is at 10% or 90%, a resize should stay within a frame or two.
In short, resize is a viewport change, not a reason to replay the entire conversation.
Conversation ID
No response
Additional Context
- Related: #7471 (root cause — full-screen redraws of the entire history), #7934 (closed as duplicate of #7471).
- This report specifically isolates the resize trigger, which affects every session (not just resumed ones) and fires far more often than resume in normal use.
- Impact scales with context usage; at high context (>70%) the TUI is effectively unusable any time the terminal is resized.
🤖 Potential Duplicate Detected
This issue appears to be similar to:
- #7471: TUI 2.0: Full-screen redraws of entire conversation history cause progressive lag (95% similar)
What happens next?
- ⏰ This issue will be automatically closed in 3 days
- 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
- 💬 Comment on the original issue if you have additional information
Why is this marked as duplicate? Both report the same core problem of TUI performing full-screen redraws of entire conversation history causing performance issues. The new issue specifically focuses on resize triggers while #7471 covers the general rendering problem, but they describe the same underlying technical issue with identical symptoms of progressive lag scaling with context usage.
I'm having similar issue: after resizing the terminal window (Kiro CLI), my entire context window (Sonnet 4.6) of 1M is gone, at 100%, nothing I can do to compact it.
Thank you for your feedback! 🙏
The duplicate label has been removed and this issue has been sent back for maintainer review.
A maintainer will review this issue shortly.
Thanks for reporting this! Since this was filed against an older version, we'd like to check if the issue still occurs on the latest release.
Could you please test on the current version?
- CLI: 2.10.0
To update: download from kiro.dev.
If the issue persists, please reply with:
- Your current Kiro version (Help → About)
- Steps to reproduce
- Conversation ID (if available)
If we don't hear back within 7 days, we'll close this as resolved. Thanks for your patience!
Closing this as stale — the retest / follow-up request from a week ago hasn't received a reply, so we're closing to keep the queue focused. If you're still hitting this on the current version, please open a new issue with a fresh Conversation ID and your current Kiro version — those help a lot.
To update: download from kiro.dev.