Files
pipelines/app/notes/chat-enter-send.md

1.6 KiB

Enter sends chat messages

  • Plain Enter and numpad Enter send; Shift+Enter inserts a newline at the caret or replaces only selected text. Ctrl/Cmd+Enter remain compatible shortcuts.
  • The native keyboard exposes Send and uses the same command/prompt path while retaining composer focus. Slash completion/execution remains local. Key repeat, blank drafts and duplicate submissions do not create extra prompts.
  • Enter during active IME composition does not submit an unfinished candidate.
  • Shift+Enter is handled explicitly: passing it through with a Send input action caused web submission. The empty Cupertino field also stays multiline, since a single-line web editor stripped a programmatically inserted newline on the next edit. Placeholder sizing/text-scale regression still passes.

Checks and evidence

  • Full flutter test: 1,915 passed. flutter analyze: clean.
  • Release web build: build/chat-enter-send-web (isolated, not published).
  • Material and Cupertino real-browser probes used Shift+Enter, typed a second line, and submitted with plain Enter. Fixture wire evidence confirms exactly one prompt with the complete two-line text. Response dots/tool/text regressions also passed; screenshots inspected in build/chat-enter-send-{material,cupertino}/.
  • Widget tests cover both hosts, hardware Enter/numpad/Ctrl/Cmd, software Send, caret/selection behavior, IME confirmation, repeats and empty/duplicate sends.
  • No website/APK publication or device installation for this change. Mobile Send is covered by widget tests, not a new physical-device interaction.