Skip to content

feat(shell): multi-line auto-growing workspace composer - #53

Merged
bengidev merged 6 commits into
mainfrom
bengidev/workspace-composer-multiline
Sep 1, 2026
Merged

feat(shell): multi-line auto-growing workspace composer#53
bengidev merged 6 commits into
mainfrom
bengidev/workspace-composer-multiline

Conversation

@bengidev

@bengidev bengidev commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Configure the workspace composer for auto-growing multi-line input with submit_on_enter, so Enter submits and Shift+Enter inserts a newline.
  • Remove the fixed composer input height and bottom-align the send button so the field can expand with content (up to 6 lines).
  • Update the composer helper text to document the Shift+Enter newline shortcut.

Test plan

  • Open the workspace composer and type a single line; confirm the field starts at one line tall.
  • Press Shift+Enter and confirm a newline is inserted and the input grows taller.
  • Add several lines and confirm growth stops at the configured max height.
  • Press Enter without Shift and confirm it submits instead of inserting a newline.
  • Confirm the send button stays bottom-aligned as the composer grows.

Configure the workspace composer for auto-growing multi-line entry so Enter can submit while Shift+Enter inserts a newline.
Remove the fixed input height and bottom-align the send button so the composer can expand as users add lines.
Update the workspace composer helper text so users know how to insert a newline before sending.
Subscribe to PressEnter, clear non-empty trimmed input on submit, and route the send button through the same handler so Enter-to-send matches the helper text.
Cover Enter submit, send-button click, Shift+Enter newline insertion, whitespace-only no-op, and auto-grow row limits.
Use if-let for the PressEnter subscription and format the composer send button chain so CI fmt/clippy checks pass.
@bengidev
bengidev merged commit 6f61ecb into main Sep 1, 2026
3 checks passed
@bengidev
bengidev deleted the bengidev/workspace-composer-multiline branch September 1, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant