[PR #6194] fix: dialog textarea resizing on paste #11775

Open
opened 2026-02-16 18:16:43 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6194

State: open
Merged: No


Problem

Pasting short prompts into the dialog textarea did not resize the input,
causing clipped and janky rendering.

Solution

  • Made textarea height reactive to content changes
  • Handled paste and typing via onContentChange
  • Added sensible min/max height bounds

Testing

  • Pasted short (<150 char) prompts
  • Pasted multiline text
  • Verified textarea resizes smoothly and submit works correctly

Fixes #6069

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6194 **State:** open **Merged:** No --- ### Problem Pasting short prompts into the dialog textarea did not resize the input, causing clipped and janky rendering. ### Solution - Made textarea height reactive to content changes - Handled paste and typing via onContentChange - Added sensible min/max height bounds ### Testing - Pasted short (<150 char) prompts - Pasted multiline text - Verified textarea resizes smoothly and submit works correctly Fixes #6069
yindo added the pull-request label 2026-02-16 18:16:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11775