orca/src/renderer
Wooseong Kim ac830689c4
fix(composer): autosize Create Worktree note on PR prefill (#10580)
* fix(composer): autosize Create Worktree note on PR prefill

The Note textarea only grew on onInput, so programmatic PR title prefills
left the box at one row with overflow hidden. Resize whenever the note
value changes and allow scroll under max-height (fixes #10575).

* review: size the composer note with field-sizing instead of a measure pass

The prefill bug is the failure mode of imperative sizing: the height is only
recomputed at the events someone remembered to hook, so a programmatic setNote
(and a pane resize, and a font reflow) leaves it stale. Let the layout engine
own the height, matching NativeChatComposerField and LinearIssueTextEditor.

Drops the extracted helper and its unit test — that test asserted the two
assignments it wrote and stayed green with the bug present. The composer test
now pins the class contract and goes red on the pre-fix markup.

---------

Co-authored-by: Brennan Benson <79079362+brennanb2025@users.noreply.github.com>
2026-08-09 17:47:28 -07:00
..
src fix(composer): autosize Create Worktree note on PR prefill (#10580) 2026-08-09 17:47:28 -07:00
index.html fix(macos): prevent stale UI surfaces after wake (#11226) 2026-07-28 16:37:13 -07:00
popout.html fix(macos): prevent stale UI surfaces after wake (#11226) 2026-07-28 16:37:13 -07:00
web-index.html