Long command output is hard to read: no copy, wrap toggle, ANSI handling or truncation notice #27

Open
opened 2026-09-08 20:57:30 -04:00 by jared · 0 comments
Owner

Overview

Command output is rendered in a <pre> with escapeHtml(). Tools that emit colour codes (ls --color, docker, systemctl status, npm) show raw \x1b[32m sequences. There is no copy-to-clipboard, no wrap/no-wrap toggle, no "expand" for outputs over the max-height, and the worker's 10 MB maxBuffer can produce megabytes in a modal with no truncation indicator. Download is JSON-only; a plain text/.log export of stdout would be more useful for pasting into tickets.

Suggested fix

Strip or render ANSI colours, add Copy / Wrap / Expand controls, truncate very large outputs with a "show full" action, add a .txt download.

## Overview Command output is rendered in a `<pre>` with `escapeHtml()`. Tools that emit colour codes (`ls --color`, `docker`, `systemctl status`, `npm`) show raw `\x1b[32m` sequences. There is no copy-to-clipboard, no wrap/no-wrap toggle, no "expand" for outputs over the max-height, and the worker's 10 MB `maxBuffer` can produce megabytes in a modal with no truncation indicator. Download is JSON-only; a plain text/`.log` export of stdout would be more useful for pasting into tickets. ## Suggested fix Strip or render ANSI colours, add Copy / Wrap / Expand controls, truncate very large outputs with a "show full" action, add a `.txt` download.
jared added the enhancementuxfrontendexecutionspriority/medium labels 2026-09-08 20:57:30 -04:00
Sign in to join this conversation.