#6411·opensre

[BUG] Terminal resize can clear transcript or duplicate live prompt UI

Author: muddlebeeCreated Sep 25, 2026Updated Sep 28, 2026
Labelsbug

Summary

Resizing the interactive OpenSRE terminal can clear existing session output or duplicate the live status/composer region. The problem is most visible after /resume, but affects the general prompt-toolkit rendering lifecycle.

Observed failure modes

  • Existing conversation, resumed history, alerts, or other visible transcript disappears after a width change.
  • Repeated resizes stack multiple Auto (High), CI/CD fixes, or composer rows.
  • The composer becomes narrow, borderless, clipped, or no longer spans the terminal width.
  • Typed but unsubmitted input can be disturbed while the prompt repaints.

Expected behavior

Changing terminal dimensions should preserve transcript and typed input while keeping exactly one coherent live prompt at the final viewport size.

Steps to reproduce

  1. Start the interactive OpenSRE CLI.
  2. Run /resume and select a session with visible history, or display an alert/other transcript output.
  3. Resize the terminal repeatedly, including from wide to narrow.
  4. Observe missing transcript or duplicated/clipped live prompt rows.

Environment

Reproduced on Linux with GTK/VTE.

Additional context

Discovered while validating #6408. The transcript/live-prompt fix is implemented in #6412. Static launch-banner responsiveness has been split into #6425 and is intentionally outside #6412.

Success criteria

  • Resizing never clears existing transcript, including resumed sessions and pre-turn alerts.
  • Typed but unsubmitted input survives resize.
  • Every viewport contains at most one live status row and one full-width composer.
  • Repeated resize events settle without stacked or clipped prompt chrome.
  • Regression tests cover transcript preservation, physical row reflow, prompt suspension, and non-VT output.