Repository navigation
Wrap long lines in expanded tool call bodies instead of scrolling horizontally - #430
Merged
currentbits merged 1 commit intoAug 18, 2026
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
currentbits
deleted the
coder/tool-call-bodies-scroll-horizontally-ins-5c8382
branch
October 3, 2026 16:07
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.
Fixes #326.
Problem
Expanded tool calls in the agent thread pane grew a horizontal scrollbar whenever the tool input or output contained long lines. The thread view is meant to never scroll horizontally —
.bodyalready setsoverflow-x: hiddenwith a comment saying exactly that — so long lines should wrap instead.Change
One rule in
src/components/ThreadView.module.css:.toolPre { ... - white-space: pre; - overflow-x: auto; + white-space: pre-wrap; + overflow-wrap: anywhere; + overflow-x: hidden; max-width: 100%; }.toolPreis shared by both the tool input and tool output<pre>elements (ThreadView.tsx:383and:387), so this single rule fixes both panes.overflow-wrap: anywhererather thanbreak-wordis deliberate: tool bodies are full of unbroken tokens — long file paths, URLs, base64 — thatbreak-wordrefuses to split, andanywherealso constrains the element's min-content width so it can't force its flex container wider.Not changed
.diffLinekeepswhite-space: preand its container keepsoverflow: auto. Diff hunks need their columns aligned, so scrolling there is intentional, not the same bug.Verification
.toolPrehas no other consumers — greppedsrc/.overflow-x/white-space: prerule in the stylesheet; nothing else reintroduces a horizontal scrollbar in the pane.npm run typecheckpasses.Not visually checked in a running build — the diff is a CSS property swap with no TypeScript surface.