Repository navigation
feat(workbench): Shell details wrap on the desktop, with output a step dimmer - #6883
Merged
Merged
Conversation
macOS draws each NSH text into one Core Animation layer, and a layer taller or wider than 16384 pixels shows nothing. A Shell output of about 1200 lines rendered as an empty box at 2x. Code text is now laid out in pieces of 200 lines, each well under the limit. A line wider than 800 columns, with wide characters counted as two, is cut and ends with how many characters are left. The copy buttons still copy the whole recorded text.
…note At the 130% text size on a 2x display, 800 columns of monospace code text measured about 16,715 px, over the 16,384 px layer limit, and the "more characters" note added more. The budget is now 720 columns with the note included, and emoji and symbols such as ✅, which measure 2.2 columns, count as three. A test ties the budget to the largest size in appearance.ts.
…, output a step dimmer - On desktop the command wraps at the column instead of scrolling sideways, and its copy button stands beside its first line. - The working folder is cut from its start when it does not fit, so its last folders stay in view. - What the command printed reads one step dimmer than the command (the secondary text color), with a wider gap above it. - Code text pieces count the rows a wrapped line takes at a narrow column, so wrapped output stays under the macOS layer limit too.
Text from pipes has no width of its own, so on desktop it wraps at the column like the command. Terminal scrollback, the terminal screen and the last alternate screen are rows of a fixed-width terminal grid; they keep their columns and scroll sideways.
Integrate the merged long-text pieces fix, measure the wrapped text container, and budget for word breaks when splitting and truncating recorded Shell text. Preserve full copy text and PTY grids. Validated with eight code-piece tests, the actual ToolReader bundle, focused types, and CoreText layout at four widths with the largest supported font on a 2x display. Generated-by: OpenAI Codex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #6868 (it builds on the pieces
CodeTextthere). The first two commits are #6868; this PR is the last two. I'll rebase once #6868 merges.Why
As proposed in #6078: on the desktop, a long Shell command scrolls sideways, so most of it is out of view, and the command and its output look the same, so it is hard to see where one ends and the other starts.
Change (desktop only; the terminal is unchanged)
C.secondary), so the two read as separate parts. A slightly wider gap sits between them.Differences from what I proposed in #6078
~. I left that out: the UI does not know the home folder of the host that ran the command, and a guess could show a wrong path. Shortening from the start keeps the useful end of the path without guessing. If a real home-folder value becomes available to the UI,~can follow.#6840 and #6838 are kept as they are.
AI use
Written with Claude Code (Claude Opus 5.5). It wrote the change and the tests for wrapped pieces. I checked it with a local screenshot probe in light, dark and a 900 px wide window: the command and output wrap, the copy buttons sit at the first line, and the folder is shortened from the start while "Shell ·" stays.