Chat panel: wrap long lines instead of horizontal scroll

Resolved 💬 3 comments Opened May 28, 2026 by CaptainRyen Closed Jun 30, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

In the VS Code extension's chat panel, long lines (e.g. code paths, URLs, or dense prose) overflow horizontally, requiring the user to scroll right to read them. This breaks reading flow, especially for longer assistant responses.

Expected behavior: Text in chat messages wraps to fit the panel width, similar to how VS Code's terminal handles terminal.integrated.wordWrap or how most chat UIs behave by default.

Actual behavior: Long lines extend past the panel width and trigger a horizontal scrollbar.

Workaround: Manually drag the panel wider or move it to the bottom dock — neither is ideal.

Environment:

Claude Code VSCode extension
macOS (darwin 25.5.0)
Panel docked on the right side

Proposed Solution

A CSS fix on the chat webview container — either overflow-x: hidden combined with word-break: break-word, or white-space: pre-wrap on message content elements. Other VS Code AI extensions (Qwen Code, Kilo Code) already handle this correctly in the same sidebar panel, so the fix is likely a small, targeted change to the extension's webview stylesheet.

Alternative Solutions

_No response_

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

_No response_

Additional Context

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗