Repository navigation
fix(flow-chat): wrap long computer use error text (#3796) - #3812
Merged
Merged
Conversation
Contributor
Author
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.
Summary
The ComputerUse tool card rendered its error body in a bare
<pre>, which inherited theglobal
overflow-x: autoand defaultwhite-space: pre. Long plain-text errors such asTool error: [TARGET_SURFACE_UNAVAILABLE] ...could only be read by scrolling horizontally.The error body now wraps naturally.
Fixes #3796
Type and Areas
Type: Bug fix / UI/UX
Areas: Web UI
Motivation / Impact
Long ComputerUse error output was clipped into a horizontal scroll area, which made
automation failures hard to read in the transcript. The error body now uses
white-space: pre-wrapandoverflow-wrap: anywhere, so it wraps inside the card.Scope is limited to the ComputerUse card's error body. Code previews, diffs, and terminal
output keep their existing scrolling behavior. No user-visible strings, locales, or theme
tokens changed.
Verification
pnpm --dir src/web-ui exec sass src/flow_chat/tool-cards/ComputerUseToolCard.scss /tmp/cu.css --no-source-map— compiles.node scripts/audit-appearance-contracts.mjs— passed (264 surfaces, 3119 DOM contracts).node scripts/audit-typography-tokens.mjs— passed with zero violations.pnpm run type-check:webandnode scripts/audit-frontend-colors.mjscould not completein a clean checkout because generated artifacts were absent (
@/generated/api,src/web-ui/public/monaco-editor); both failures reproduce without this change.without a horizontal scrollbar.
AI assistance: prepared with AI assistance; verification is limited to the static checks
above — no native desktop UI run.
Reviewer Notes
Before: the error is cut off behind a horizontal scrollbar (see #3796 screenshot).
One file changed, two CSS declarations; no behavior change outside the error body.
Checklist