stacklok / stacklok/mecatl

feat(mecatui): insert newline with Shift+Enter in chat input

Open
#895 0 comments 0 reactions 1 assignee View on GitHub

@JAORMX is already working on this.

Since Sep 5, 2026.

Dominant language
Go
Stars
152
Forks
16
Avg merge
14h 48m
Merged PRs (30d)
536

Description

Problem

The mecatui input box needs a way to insert a newline without submitting the prompt.

Desired behavior

  • Pressing Shift+Enter in the input box inserts a newline at the cursor position.
  • Pressing Enter continues to submit the prompt unchanged.
  • The behavior works with multiline input, including subsequent edits and submission.

Acceptance criteria

  • Shift+Enter inserts a newline and does not submit the prompt.
  • Enter submits the current multiline prompt.
  • The input UI correctly renders and preserves multiline content.
  • Add/update offline UI tests covering both key paths.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.