mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5071] [GUI] Japanese IME conversion-commit Enter sends message prematurely #2360
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2360
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mami123098 on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5071
Environment
Strata-0.2.10-macos-arm64.dmgSteps to reproduce
konnnitiha)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 composingand"key 229"— 0 matches.japanesematches 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.isComposingaroundapps/host/src/screens/Chat.tsx:679, andapps/host/src/lib/commands.ts:82guards app shortcuts withe.isComposing; the Terminal web UI guards its composer too (serve/web/app.js:1315). I did not find anycompositionstart/compositionendhandling 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:181has noisComposingguard at all, so committing a rename mid-conversion would also confirm the rename.@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:
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
@github-actions[bot] commented on GitHub (Nov 3, 2026):
Thanks, this follows the format now.
@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