Skip to content

Conversation

@honjo-hiroaki-gtt
Copy link

Description

This PR enhances the chat input field to support multi-line text input with proper IME (Input Method Editor) handling for languages like Japanese, Chinese, and Korean.

Changes

  • ✨ Replace single-line Input component with multi-line Textarea component
  • ⌨️ Add keyboard shortcuts:
    • Enter: Send message
    • Shift+Enter: Insert new line
  • 📐 Implement auto-resize functionality (max height: 200px)
  • 🌏 Fix IME composition issue where pressing Enter during character conversion would submit the form
  • 🎨 Remove scrollbar for cleaner UI appearance

Motivation

The previous single-line input was limiting for users who wanted to compose longer messages or format their text with line breaks. Additionally, users typing in languages that use IME (Japanese, Chinese, Korean) experienced issues where pressing Enter to confirm character conversion would inadvertently submit the message.

Testing

  • Tested multi-line input with Shift+Enter
  • Tested message submission with Enter
  • Tested auto-resize functionality
  • Tested Japanese input without premature submission
  • Tested on macOS with Chrome/Safari/Firefox

Screenshots

CleanShot 2025-08-19 at 18 25 59@2x

@vercel
Copy link

vercel bot commented Aug 19, 2025

@honjo-hiroaki-gtt is attempting to deploy a commit to the nick-langchainde's projects Team on Vercel.

A member of the Team first needs to authorize it.

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