Skip to content

[Bug]: Dashboard composer goes blank when resuming long sessions #47313

Open

Description

@Icather

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

  1. Have a conversation with 200+ messages
  2. Open Dashboard → Sessions → click to resume that conversation
  3. 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

  1. changed the title [-]Dashboard: long session resume causes composer area to go blank[/-] [+][Bug]: Dashboard composer goes blank when resuming long sessions[/+] on Jun 16, 2026
  2. added
    type/bugSomething isn't working
    comp/tuiTerminal UI (ui-tui/ + tui_gateway/)
    P2Medium — degraded but workaround exists
    on Jun 16, 2026
  3. added 2 commits that reference this issue on Jun 17, 2026
    c075fe9
  4. Icather commented on Jun 18, 2026

    @Icather
    Author

    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.

  5. added 2 commits that reference this issue on Jul 20, 2026
    7825071
    9a92cb6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existsarea/sessionsSession lifecycle, resume, persistence, historycomp/tuiTerminal UI (ui-tui/ + tui_gateway/)type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions