Repository navigation
improve: grow desktop chat drafts up to twelve lines - #186874
roboclaw-bot merged 4 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR lets desktop Chat and New Session drafts grow to twelve lines while preserving mobile and embedded-composer limits. Example: Compose a twelve-line Chat draft at 1440 × 900.
Review scores
ProductKind: Preference · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep this PR open: it contributes distinct height-only behavior, has composer-owner engagement, and introduces no definite correctness finding; the twelve-line design still needs a recorded owner decision. Priority: P3 Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI composers receive draft text and available pane geometry, then size the editor while preserving caret visibility, internal scrolling, and conversation space. flowchart TD
A[Draft text] --> B[Chat or New Session composer]
C[Pane and context geometry] --> D[Shared layout measurement]
D --> E[CSS editor limit]
B --> F[Textarea sizing owner]
E --> F
F --> G[Visible draft and internal scrolling]
Technical reviewBest possible solution: Let the composer owner select the desktop cap, retaining CSS-owned limits and shared short-pane measurement if twelve-line growth is accepted. Do we have a high-confidence way to reproduce the issue? Current-main CSS directly establishes the six-line limit; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? The revised bounded approach preserves mobile, embedded, and short-pane behavior and reuses the textarea sizing owner, but choosing twelve lines remains a product preference. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 30aeaa050a96. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +298, Tests +487. Total +785 across 14 files. Added test files: 2. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 29, 2026, 11:06 AM ET / 15:06 UTC (Revision 2). |
Keep mobile Chat at six lines and retain the New Session ten-line floor. Apply the line limit before measurement to avoid a restored-draft reload jump, constrain only pane-owned composers, and preserve embedded composer limits. Add cap, embedded-composer and first-paint regressions plus populated-chat paste/typing coverage. Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Use the shared layout measurement lifecycle instead of a second class and frame queue. Preserve twelve-line desktop caps, mobile and embedded limits, short-pane budgeting, scroll anchoring and first-paint restoration. Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Measure the pane-owned editor limit from the textarea observer both composers already use, removing the separate layout modules so the height change fits the Chat boot and CSS budgets. Visual-viewport-only keyboard overlays and a caret already scrolled below a shrinking cap are accepted edge cases; pane resize observers cover window and resizing keyboards. Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
|
Merged via squash.
|
* improve: let long chat drafts grow within the pane * improve: cap chat draft growth at twelve desktop lines Keep mobile Chat at six lines and retain the New Session ten-line floor. Apply the line limit before measurement to avoid a restored-draft reload jump, constrain only pane-owned composers, and preserve embedded composer limits. Add cap, embedded-composer and first-paint regressions plus populated-chat paste/typing coverage. Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> * refactor: simplify pane-owned composer height measurement Use the shared layout measurement lifecycle instead of a second class and frame queue. Preserve twelve-line desktop caps, mobile and embedded limits, short-pane budgeting, scroll anchoring and first-paint restoration. Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> * refactor: fold composer pane height into textarea observer Measure the pane-owned editor limit from the textarea observer both composers already use, removing the separate layout modules so the height change fits the Chat boot and CSS budgets. Visual-viewport-only keyboard overlays and a caret already scrolled below a shrinking cap are accepted edge cases; pane resize observers cover window and resizing keyboards. Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> --------- Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Related: #113270
Height-only alternative to #178226, requested by @vyctorbrzezowski. Preserves @Marvinthebored’s original PR and implementation.
Work sessions
What Problem This Solves
Long Chat drafts start scrolling after six lines even when there is room to show more, while unconstrained pane-based growth can obscure too much of the conversation. A restored long draft also changes height after its first paint.
User Impact
Desktop Chat grows automatically to 12 lines, mobile Chat stays at 6, and shorter panes can constrain the editor further. New Session grows to 12 desktop lines while retaining its existing 10-line floor and mobile behavior. Longer drafts scroll internally; deleting text shrinks the editor again. Embedded composers keep their existing limits.
Why This Change Was Made
CSS owns the line cap from the first paint. The existing textarea overflow observer now measures the pane-owned editor limit on its first connected pass, accounting for controls, context and short panes, and attaches only in Chat footers or New Session scroll panes; no separate layout module, class or frame queue is added. The redundant JavaScript 80% limits are removed. New Session’s twelve-line allowance keeps its existing ten-line floor.
Accepted edge cases, kept out to fit the boot budget: a keyboard that overlays without resizing the layout (iPad-sized New Session) can cover up to two extra lines, and a caret already scrolled below a shrinking cap is not pulled back into view. Pane resize observers cover window and resizing keyboards.
There are no resize handles, width changes, new preferences, or changes to the existing compact mobile composition model. Width dragging remains in #178226.
Evidence
20121545966a5212dc3783a0375333fb6cd29eeb,ui:check-performance:basepasses with Chat boot JS gzip +309 B (1,276,344 / 1,276,669 B) and total CSS gzip +78 B (308,515 / 308,526 B). No budget was raised.Same draft and conversation, 1440 × 900
Before is current main (
2e4ae4432bd48fba9157b521a313a29341282a05); after is this height-only change. Both use the same synthetic conversation and twelve-line draft. The images below are identically cropped from full-page captures and retain the latest reply above the composer.