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
- Run
agentcore dev and open the Agent Inspector Web UI.
- Focus the chat input.
- Switch to a Japanese IME.
- Type Japanese text that requires IME composition/conversion, for example
nihongo -> 日本語.
- 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.
Description
The Web UI launched by
agentcore devsubmits 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
agentcore devand open the Agent Inspector Web UI.nihongo->日本語.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.isComposingbefore callingpreventDefault()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.1The bundled chat input still appears to handle Enter as submit without an IME composition guard.