Skip to content

agentcore dev Web UI submits Japanese IME input when pressing Enter to confirm conversion #1282

@minorun365

Description

@minorun365

Description

The Web UI launched by agentcore dev submits the chat message when pressing Enter to confirm Japanese IME conversion.

For Japanese users, Enter is commonly used to confirm IME composition before the text is finalized. In the current chat input, that Enter keypress is treated as "send message", so the prompt is submitted before the user finishes composing/editing the Japanese text.

Steps to Reproduce

  1. Run agentcore dev and open the Agent Inspector Web UI.
  2. Focus the chat input.
  3. Switch to a Japanese IME.
  4. Type Japanese text that requires IME composition/conversion, for example nihongo -> 日本語.
  5. Press Enter to confirm the IME conversion.

Expected Behavior

Pressing Enter while the IME is composing text should only confirm the conversion.

The message should be submitted only when the user presses Enter after IME composition has ended.

Actual Behavior

The chat message is submitted immediately when Enter is pressed to confirm the Japanese IME conversion.

CLI Version

0.14.0

Operating System

macOS

Additional Context

This is a common IME handling issue in chat UIs for Japanese, Chinese, and Korean users.

The likely fix is to skip the Enter-to-send behavior while the keyboard event is part of IME composition, for example by checking event.nativeEvent.isComposing / event.isComposing before calling preventDefault() and sending the message.

I also checked the latest npm package at the time of writing:

  • @aws/agentcore@0.14.0
  • @aws/agent-inspector@0.4.1

The bundled chat input still appears to handle Enter as submit without an IME composition guard.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions