Repository navigation
Description
Bug Description
When resuming a long conversation (200+ messages) in the web dashboard, the message list briefly flashes (~0.5s) then the entire composer area collapses to the terminal background color. Only the status bar above the input line remains visible. Scrolling up with the mouse wheel partially recovers older messages, but the viewport area that should show recent messages stays blank.
Short conversations and brand-new sessions do not trigger this.
Steps to Reproduce
- Have a conversation with 200+ messages
- Open Dashboard → Sessions → click to resume that conversation
- Observe: messages flash briefly, then the composer area goes blank
Expected Behavior
Full conversation visible immediately on resume. No flicker and no blank composer area.
Actual Behavior
Composer area collapses to terminal background color (~0.5s after flash). Status bar and input line remain. Scrolling up retrieves older messages, confirming data is present — viewport positioning is what fails.
Affected Component
Other (Web Dashboard)
Debug Report
N/A — this is a frontend rendering bug in the web Dashboard (React + xterm.js). Backend logs are not relevant.
Environment
- OS: Windows 10
- Browser: Edge Dev
- Python: 3.11.15
- Hermes: 0.16.0 (upstream c6b0eb4, updated 2026-06-16)
- Provider: DeepSeek v4 flash
Root Cause Analysis
Suspected xterm.js viewport height miscalculation when loading a large volume of lines into the terminal buffer on session resume. The data loads (scroll-up recovers messages) but the visible viewport fails to position at the bottom of the buffer. May also interact with detached sub-session cleanup from previous WebSocket disconnects.
Persistent since at least v0.14.x.
Proposed Fix
N/A — front-end only.
Are you willing to submit a PR for this?
- I would like to fix this myself and submit a PR
Additional Investigation
Tested the same 653-message session in hermes chat TUI via /resume 20260616_200627_96a57f. TUI rendered the session correctly with no blank viewport — messages displayed properly, scroll worked, and no flicker occurred. This confirms the bug is isolated to the web Dashboard's xterm.js PTY integration, not the backend session replay pipeline or the TUI virtual scrolling system.
Activity
[-]Dashboard: long session resume causes composer area to go blank[/-][+][Bug]: Dashboard composer goes blank when resuming long sessions[/+]fix(web): strip ANSI erase codes and blank-line bursts from PTY stream
Icather commentedon Jun 18, 2026
Update: PR #47772 resolves the most severe symptom (full-screen blank viewport) but does NOT fully fix the root cause. Post-submission investigation identified the fundamental issue as Ink two-pass rendering CUP coordinate drift in INLINE mode — see #47772 (comment) for the full analysis and six failed alternative approaches. Issue should remain open.
fix(web): strip ANSI erase codes and blank-line bursts from PTY stream
fix(web): gate ANSI filtering behind resumeParam and reuse TextDecoder
fix(web): strip ANSI erase codes and blank-line bursts from PTY stream
fix(web): gate ANSI filtering behind resumeParam and reuse TextDecoder
fix(web): strip ANSI erase codes and blank-line bursts from PTY stream
fix(web): gate ANSI filtering behind resumeParam and reuse TextDecoder
fix(web): strip ANSI erase codes and blank-line bursts from PTY stream
fix(web): gate ANSI filtering behind resumeParam and reuse TextDecoder
fix(web): strip ANSI erase codes and blank-line bursts from PTY stream
fix(web): gate ANSI filtering behind resumeParam and reuse TextDecoder
fix(web): strip ANSI erase codes and blank-line bursts from PTY stream
fix(web): gate ANSI filtering behind resumeParam and reuse TextDecoder
fix(web): strip ANSI erase codes and blank-line bursts from PTY stream
fix(web): gate ANSI filtering behind resumeParam and reuse TextDecoder