claude-code - 💡(How to fix) Fix Chat panel: wrap long lines instead of horizontal scroll

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

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

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • 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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING