Skip to content

fix(coding-agent): wrap long error and prevent URL clipping#3161

Draft
igasmi wants to merge 4 commits into
can1357:mainfrom
igasmi:fix/google-oauth-error-wrapping
Draft

fix(coding-agent): wrap long error and prevent URL clipping#3161
igasmi wants to merge 4 commits into
can1357:mainfrom
igasmi:fix/google-oauth-error-wrapping

Conversation

@igasmi

@igasmi igasmi commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

This PR fixes issues with long turn-ending provider error lines in the terminal TUI:

  • Wraps over-long error lines in both the pinned error banner and the inline transcript block to prevent verification URLs from being truncated out of view.
  • Ensures intact URLs are never clipped by the TUI overflow marker.
  • Updates the coding-agent CHANGELOG.md under Unreleased.

igasmi added 2 commits June 19, 2026 13:33
getWrappedPreviewLines appended a " …" overflow marker by truncating the
final retained line to wrapWidth. When that line was a full-width token —
e.g. an account-verification URL wrapped onto its own line — the marker
severed the very URL the wrapping was meant to preserve.

Make the marker best-effort: append it only when it fits without clipping
the retained line; otherwise leave the line intact (full text is still kept
in the persisted session). Drop the now-unused `ellipsis` parameter.

Adds tests for the full-width-URL case and tightens the overflow-marker
test to the marker-has-room path.
@github-actions github-actions Bot added the vouched Passed the vouch gate label Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vouched Passed the vouch gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant