A modifier with Enter sends; the box grows with what is in it #68
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/claude-code-query!68
Loading…
Reference in a new issue
No description provided.
Delete branch "cc-chat-enter-sends"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two changes to the composer, both from Michal's reaction to using it.
Enter writes a new line; a modifier with Enter sends. What is typed here is a
prompt, often several lines of one, and a bare Enter would cut a person off
mid-thought with no way to unsend. The box already took Ctrl/Cmd + Enter and it
went unfound, which was the actual defect — so the box now says which modifier
this machine has (it accepts either; naming the wrong one teaches a key that
is not there). The browser's own newline is suppressed only on the press that
sends.
The box grows with what is in it, up to 40vh, after which it scrolls — you
have to be able to read back several lines before sending them. Measured in a
browser: 48px empty, 80px at four lines, 197px at twelve, back to 48px once
sent.
Ten tests in
ComposerTest. One honest limit: jsdom lays nothing out andreports every
scrollHeightas zero, so the tests there assert only that theheight is measured again on every change; the actual sizes above were verified
in a real browser.
Enter sends what was typedto A modifier with Enter sends; the box grows with what is in it