WSL2 / UBUNTU Uncaught exception: Error: Rendered line 127 exceeds terminal width (249 > 237). #2

Open
opened 2026-02-15 17:17:05 -05:00 by yindo · 2 comments
Owner

Originally created by @chataros on GitHub (Jan 31, 2026).

[openclaw] Uncaught exception: Error: Rendered line 127 exceeds terminal width (249 > 237).

This is likely caused by a custom TUI component not truncating its output.
Use visibleWidth() to measure and truncateToWidth() to truncate lines.

Debug log written to: /root/.pi/agent/pi-crash.log
at TUI.doRender (file:///usr/lib/node_modules/openclaw/node_modules/@mariozechner/pi-tui/dist/tui.js:740:23)
at file:///usr/lib/node_modules/openclaw/node_modules/@mariozechner/pi-tui/dist/tui.js:250:18
at process.processTicksAndRejections (node:internal/process/task_queues:85:11)

Originally created by @chataros on GitHub (Jan 31, 2026). [openclaw] Uncaught exception: Error: Rendered line 127 exceeds terminal width (249 > 237). This is likely caused by a custom TUI component not truncating its output. Use visibleWidth() to measure and truncateToWidth() to truncate lines. Debug log written to: /root/.pi/agent/pi-crash.log at TUI.doRender (file:///usr/lib/node_modules/openclaw/node_modules/@mariozechner/pi-tui/dist/tui.js:740:23) at file:///usr/lib/node_modules/openclaw/node_modules/@mariozechner/pi-tui/dist/tui.js:250:18 at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
Author
Owner

@soma115 commented on GitHub (Feb 2, 2026):

This issue shows up when I'm trying to change model with /model.
I'm using Synthetic.ai and one of the models they provide have very long name.

@soma115 commented on GitHub (Feb 2, 2026): This issue shows up when I'm trying to change model with `/model`. I'm using Synthetic.ai and one of the models they provide have very long name.
Author
Owner

@pagsjarvis-oss commented on GitHub (Feb 10, 2026):

Fix submitted: https://github.com/openclaw/openclaw/pull/13726

The TUI footer and header were not truncating text to terminal width. When a model name is very long (e.g. from Synthetic.ai), the rendered line exceeds terminal width and crashes pi-tui.

The fix:

  1. Truncates model labels longer than 40 chars with an ellipsis prefix (…long-model-name)
  2. Applies truncateToWidth() from pi-tui to both header and footer as a safety net
  3. Reads terminal width dynamically via process.stdout.columns
@pagsjarvis-oss commented on GitHub (Feb 10, 2026): Fix submitted: https://github.com/openclaw/openclaw/pull/13726 The TUI footer and header were not truncating text to terminal width. When a model name is very long (e.g. from Synthetic.ai), the rendered line exceeds terminal width and crashes pi-tui. The fix: 1. Truncates model labels longer than 40 chars with an ellipsis prefix (`…long-model-name`) 2. Applies `truncateToWidth()` from pi-tui to both header and footer as a safety net 3. Reads terminal width dynamically via `process.stdout.columns`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: openclaw/openclaw.ai#2