You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Terminal renders garbled output when revisiting existing tabs #205
When switching back to an existing terminal tab in the dashboard (e.g., clicking on a builder tab that's been running), the terminal displays garbled/chaff output — scattered characters, repeated "thinking" text, partial lines, and rendering artifacts.
This appears to happen when xterm.js reconnects to a tmux-backed terminal and replays the scrollback buffer.
Steps to Reproduce
Start Tower and activate a project
Open a builder terminal
Let it run for a while (generating output)
Switch to another tab (Dashboard or another terminal)
Switch back to the original terminal tab
Observe garbled rendering
Expected Behavior
Terminal should render cleanly when revisiting, showing the current state of the terminal without rendering artifacts.
Actual Behavior
Terminal shows scattered characters, repeated partial words (e.g., "thinking" appearing dozens of times), broken line formatting, and visual garbage throughout the scrollback area.
Environment
macOS (Darwin 24.6.0)
Codev v2.0.0-rc.58
React dashboard with xterm.js + tmux-backed terminals via node-pty
Reopening — the scroll-to-bottom aspect of this bug is still present. After Tower restart, terminal replay starts printing from the top instead of showing the full buffer scrolled to bottom. Dragging the panel divider (triggering a resize/refit) fixes it, confirming the issue is that scrollToBottom() is not called after replay buffer flush.
Activity
waleedkadous commentedon Feb 9, 2026
On it! Working on a fix now.
[Bugfix #205] Fix: Keep terminal components mounted across tab switches
[Bugfix #205] Test: Add regression test for terminal tab persistence
[Bugfix #205] Fix: Restore no-terminal-session fallback (CMAP feedback)
Merge pull request #207 from cluesmith/builder/bugfix-205-terminal-re…
waleedkadous commentedon Feb 15, 2026
Reopening — the scroll-to-bottom aspect of this bug is still present. After Tower restart, terminal replay starts printing from the top instead of showing the full buffer scrolled to bottom. Dragging the panel divider (triggering a resize/refit) fixes it, confirming the issue is that scrollToBottom() is not called after replay buffer flush.
Fix terminal replay scroll, consult Codex sandbox + reasoning effort
waleedkadous commentedon Feb 15, 2026
On it! Working on a fix now.
[Bugfix #205] Test: Add regression test for replay scroll-to-bottom
[Bugfix #205] Fix: Remove unused mockFitFn variable (CMAP feedback)
Merge pull request #283 from cluesmith/builder/bugfix-205-terminal-re…
[Bugfix #400] Fix: Work page startup latency and tab switch delay