[GH-ISSUE #5071] [GUI] Japanese IME conversion-commit Enter sends message prematurely #2360

Open
opened 2026-11-04 01:58:42 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @mami123098 on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5071

Environment

  • App: Strata desktop 0.2.10 (engine 0.1.56), installed from Strata-0.2.10-macos-arm64.dmg
  • OS: macOS 27.2, Apple Silicon MacBook Pro, 32 GB unified memory (sysctl reports model identifiers inconsistently here: MacBookPro18,1 / Mac14,9)
  • Input: Japanese IME (romaji)

Steps to reproduce

  1. Switch input to Japanese and type romaji in the chat composer (e.g. konnnitiha)
  2. Press Space to open conversion candidates
  3. Press Enter to commit the chosen conversion

Expected behavior
The Enter that commits the conversion only commits it. The message is sent by a second Enter after composition has ended (the standard behavior of every macOS chat app I use).

Actual behavior
The draft message is submitted on the conversion-commit Enter.

Duplicate check
Searched open and closed issues/PRs for isComposing, IME, enter composing and "key 229" — 0 matches. japanese matches are unrelated (docs / install / perf threads; #229 is a multi-GPU cache topic).

Unconfirmed static analysis (labeled per CONTRIBUTING)
The composer's send path already checks e.nativeEvent.isComposing around apps/host/src/screens/Chat.tsx:679, and apps/host/src/lib/commands.ts:82 guards app shortcuts with e.isComposing; the Terminal web UI guards its composer too (serve/web/app.js:1315). I did not find any compositionstart / compositionend handling in the repo. On macOS the app runs inside WKWebView (Tauri), so my guess (unconfirmed) is that the composition-commit Enter arrives in a way that slips past those guards there, or through another route. Someone able to debug the macOS app may confirm faster than me.

Separate minor note (I can file it on its own if preferred): the conversation-rename input at serve/web/chats-ui.js:181 has no isComposing guard at all, so committing a rename mid-conversion would also confirm the rename.

Originally created by @mami123098 on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5071 Environment - App: Strata desktop 0.2.10 (engine 0.1.56), installed from `Strata-0.2.10-macos-arm64.dmg` - OS: macOS 27.2, Apple Silicon MacBook Pro, 32 GB unified memory (sysctl reports model identifiers inconsistently here: MacBookPro18,1 / Mac14,9) - Input: Japanese IME (romaji) Steps to reproduce 1. Switch input to Japanese and type romaji in the chat composer (e.g. `konnnitiha`) 2. Press Space to open conversion candidates 3. Press Enter to commit the chosen conversion Expected behavior The Enter that commits the conversion only commits it. The message is sent by a second Enter after composition has ended (the standard behavior of every macOS chat app I use). Actual behavior The draft message is submitted on the conversion-commit Enter. Duplicate check Searched open and closed issues/PRs for `isComposing`, `IME`, `enter composing` and `"key 229"` — 0 matches. `japanese` matches are unrelated (docs / install / perf threads; #229 is a multi-GPU cache topic). Unconfirmed static analysis (labeled per CONTRIBUTING) The composer's send path already checks `e.nativeEvent.isComposing` around `apps/host/src/screens/Chat.tsx:679`, and `apps/host/src/lib/commands.ts:82` guards app shortcuts with `e.isComposing`; the Terminal web UI guards its composer too (`serve/web/app.js:1315`). I did not find any `compositionstart` / `compositionend` handling in the repo. On macOS the app runs inside WKWebView (Tauri), so my guess (unconfirmed) is that the composition-commit Enter arrives in a way that slips past those guards there, or through another route. Someone able to debug the macOS app may confirm faster than me. Separate minor note (I can file it on its own if preferred): the conversation-rename input at `serve/web/chats-ui.js:181` has no `isComposing` guard at all, so committing a rename mid-conversion would also confirm the rename.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 3, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6598324623 --> @github-actions[bot] commented on GitHub (Nov 3, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 3, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6599847096 --> @github-actions[bot] commented on GitHub (Nov 3, 2026): Thanks, this follows the format now.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Hello mami123098,

Thank you. In Strata 0.2.11 the Enter that commits an IME conversion no longer sends the message: the composer ignores an Enter during composition, and the first Enter within 50 ms after the composition ends counts as the commit. We replayed the event orders of WebView2, WKWebView and WebKitGTK in tests, but we could not capture them on a real WKWebView, so we cannot promise your Mac is fixed. Please try 0.2.11 and tell us the input method and whether it still sends early.

The Strata project

<!-- gh-comment-id:6658484571 --> @Niko1221 commented on GitHub (Nov 5, 2026): Hello mami123098, Thank you. In Strata 0.2.11 the Enter that commits an IME conversion no longer sends the message: the composer ignores an Enter during composition, and the first Enter within 50 ms after the composition ends counts as the commit. We replayed the event orders of WebView2, WKWebView and WebKitGTK in tests, but we could not capture them on a real WKWebView, so we cannot promise your Mac is fixed. Please try 0.2.11 and tell us the input method and whether it still sends early. The Strata project
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2360
No description provided.