Skip to content

Fix chat demo: Enter sends, Alt+Enter for newline#244

Open
ryanoneill wants to merge 2 commits intomainfrom
fix/chat-demo-enter-send-and-statusbar
Open

Fix chat demo: Enter sends, Alt+Enter for newline#244
ryanoneill wants to merge 2 commits intomainfrom
fix/chat-demo-enter-send-and-statusbar

Conversation

@ryanoneill
Copy link
Owner

Summary

  • Enter now sends the message (previously was Shift+Enter, which doesn't work in most terminals)
  • Alt+Enter inserts a newline (reliably detected across terminal emulators)
  • Condensed status bar labels to prevent cutoff in narrow terminals (^M instead of [Ctrl+M], etc.)

Test plan

  • Run cargo run --example chat_markdown_demo --features "compound-components,markdown"
  • Verify Enter sends the message
  • Verify Alt+Enter adds a new line in the input
  • Verify status bar fits without being cut off

🤖 Generated with Claude Code

ryanoneill and others added 2 commits March 9, 2026 19:48
Shift+Enter is indistinguishable from Enter in most terminals without
the Kitty keyboard protocol. Switch to Enter=send and Alt+Enter=newline
which works reliably across all terminal emulators. Also condense the
status bar text to prevent it from being cut off in narrow terminals.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Alt+Enter is intercepted by Windows to toggle fullscreen. Ctrl+N works
reliably across all platforms and has a natural mnemonic (N for newline).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.71%. Comparing base (6b9f918) to head (80683c7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #244   +/-   ##
=======================================
  Coverage   91.71%   91.71%           
=======================================
  Files         148      148           
  Lines       13052    13052           
=======================================
  Hits        11971    11971           
  Misses       1081     1081           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants