[PR #6546] fix(tui): remove debug console.log statements causing visual artifacts #11968

Open
opened 2026-02-16 18:16:54 -05:00 by yindo · 0 comments
Owner

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

State: open
Merged: No


Summary

  • Remove 4 debug console.log statements that write to stdout and corrupt TUI rendering
  • Fixes visual artifacts including text bleeding, HTML entities (>) appearing, and model picker content corrupting the main view

Changes

File Removed
app.tsx:199 console.log(JSON.stringify(route.data))
route.tsx:34 console.log("navigate", route)
dialog-session-list.tsx:61 console.log("session count", ...)
prompt/index.tsx:606 console.log(command)

Root Cause

In terminal UI applications, console.log writes to stdout which interferes with the terminal rendering. These debug statements were left in from development and cause visual corruption when triggered during normal TUI operation.

Testing

  • Verified TUI renders correctly after removal
  • Typecheck passes
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6546 **State:** open **Merged:** No --- ## Summary - Remove 4 debug `console.log` statements that write to stdout and corrupt TUI rendering - Fixes visual artifacts including text bleeding, HTML entities (`>`) appearing, and model picker content corrupting the main view ## Changes | File | Removed | |------|---------| | `app.tsx:199` | `console.log(JSON.stringify(route.data))` | | `route.tsx:34` | `console.log("navigate", route)` | | `dialog-session-list.tsx:61` | `console.log("session count", ...)` | | `prompt/index.tsx:606` | `console.log(command)` | ## Root Cause In terminal UI applications, `console.log` writes to stdout which interferes with the terminal rendering. These debug statements were left in from development and cause visual corruption when triggered during normal TUI operation. ## Testing - Verified TUI renders correctly after removal - Typecheck passes
yindo added the pull-request label 2026-02-16 18:16:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11968