hermes - 💡(How to fix) Fix TUI: Shift+Enter and Alt+Enter both submit instead of inserting newline in Warp terminal

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Both Shift+Enter and Alt+Enter behave like Enter - they submit the message immediately. The only workaround is pressing Escape then Enter sequentially.

RAW_BUFFERClick to expand / collapse

Issue

In the Hermes TUI (prompt_toolkit-based CLI), both Shift+Enter and Alt+Enter submit the message instead of inserting a newline for multi-line input when using Warp terminal.

Expected behavior

  • Shift+Enter -> insert newline (standard terminal/chat convention)
  • Alt+Enter -> insert newline (documented Hermes keybinding per line 4880 of cli.py)
  • Enter -> submit

Actual behavior

Both Shift+Enter and Alt+Enter behave like Enter - they submit the message immediately. The only workaround is pressing Escape then Enter sequentially.

Environment

  • Terminal: Warp (latest)
  • Hermes: latest main
  • OS: Linux (OrbStack container on macOS)

Notes

This works fine in other terminals (iTerm2, built-in Terminal) where Alt+Enter is properly passed through as an escape sequence. Warp appears to handle modifier keys differently, so Shift+Enter support would be a more universal solution and matches the convention used by most terminal apps and chat UIs.

Suggested fix: Add a s-enter keybinding in cli.py that inserts a newline, alongside the existing Alt+Enter binding.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

  • Shift+Enter -> insert newline (standard terminal/chat convention)
  • Alt+Enter -> insert newline (documented Hermes keybinding per line 4880 of cli.py)
  • Enter -> submit

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING