Skip to content

feat: Add backslash line continuation in Discussion input#456

Merged
rjroy merged 1 commit intomainfrom
feat/slash-to-enter-not-send-jdgdm
Feb 5, 2026
Merged

feat: Add backslash line continuation in Discussion input#456
rjroy merged 1 commit intomainfrom
feat/slash-to-enter-not-send-jdgdm

Conversation

@rjroy
Copy link
Copy Markdown
Owner

@rjroy rjroy commented Feb 5, 2026

Summary

  • Adds backslash (\) line continuation support to Discussion input
  • Typing \ as the last non-whitespace character before pressing Enter inserts a newline instead of submitting
  • Matches Claude Code CLI behavior for muscle memory consistency

Test plan

  • Type a message ending with \ and press Enter - should add newline, not submit
  • Type a message ending with \ (backslash + spaces) and press Enter - should add newline
  • Type a normal message and press Enter - should submit as before
  • Shift+Enter still adds newlines regardless of content

🤖 Generated with Claude Code

Typing `\` as the last non-whitespace character before pressing Enter
now inserts a newline instead of submitting, matching Claude Code CLI
behavior. The backslash is removed and trailing whitespace trimmed.

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

codecov Bot commented Feb 5, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
frontend/src/components/discussion/Discussion.tsx 50.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@rjroy rjroy merged commit dfa13d4 into main Feb 5, 2026
1 of 2 checks passed
@rjroy rjroy deleted the feat/slash-to-enter-not-send-jdgdm branch February 5, 2026 04:44
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.

1 participant