mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
Previously, the terminal pane would always perform a clear screen on PTY attach before replaying the eager buffer. This cleared restored scrollback unconditionally, even when there was no active terminal content to replay (e.g., when the buffer was empty or only contained window titles and agent status metadata). Now, eager buffers are parsed to determine if they contain display-affecting content. The attach-time clear is skipped for empty or metadata-only replays, preserving the restored scrollback history. Trailing partial control sequences are also trimmed to prevent swallowing live terminal output.