[PR #3870] Fix TUI ASCII rendering in tmux and add regression coverage #10788

Closed
opened 2026-02-16 18:15:32 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3870

State: closed
Merged: No


Summary

  • automatically enable ASCII rendering whenever OpenTUI runs inside tmux (with an override via OPENCODE_TUI_ASCII)
  • stream frames through a small helper that decodes getRealCharBytes output, making tmux captures readable again
  • add a regression test around the helper to keep the decoding pathway honest
  • refresh docs/tui-debug.md with the latest ASCII-mode tips: auto-enable behaviour, capture advice, and cleanup checklist

Testing

  • bun test --filter ascii
  • tmux new-session -s ascii 'cd /Users/steipete/Projects/opencode && OPENCODE_TUI_ASCII=1 OPENCODE_TUI_NO_ALT_SCREEN=1 bun dev'
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3870 **State:** closed **Merged:** No --- ## Summary - automatically enable ASCII rendering whenever OpenTUI runs inside tmux (with an override via `OPENCODE_TUI_ASCII`) - stream frames through a small helper that decodes `getRealCharBytes` output, making tmux captures readable again - add a regression test around the helper to keep the decoding pathway honest - refresh `docs/tui-debug.md` with the latest ASCII-mode tips: auto-enable behaviour, capture advice, and cleanup checklist ## Testing - bun test --filter ascii - tmux new-session -s ascii 'cd /Users/steipete/Projects/opencode && OPENCODE_TUI_ASCII=1 OPENCODE_TUI_NO_ALT_SCREEN=1 bun dev'
yindo added the pull-request label 2026-02-16 18:15:32 -05:00
yindo closed this issue 2026-02-16 18:15:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10788