Skip to content

fix: prevent IME Enter from sending messages and refine model vision toggle#10

Open
Asunfly wants to merge 1 commit intoCastor6:mainfrom
Asunfly:fix/ime-enter-and-vision-toggle
Open

fix: prevent IME Enter from sending messages and refine model vision toggle#10
Asunfly wants to merge 1 commit intoCastor6:mainfrom
Asunfly:fix/ime-enter-and-vision-toggle

Conversation

@Asunfly
Copy link
Copy Markdown

@Asunfly Asunfly commented Mar 25, 2026

Summary

  • prevent the sidepanel composer from sending on Enter while an IME composition is still active
  • add a focused regression test for the Enter submission logic with WXT/Vitest setup
  • refine the model vision toggle thumb spacing so it matches the existing settings toggle style more closely

Test Plan

  • npm test -- utils/enterSubmit.test.ts
  • npm run compile
  • npm run build
  • manually verified that pressing Enter during Chinese or mixed Chinese/English IME composition confirms input instead of sending
  • manually verified the model vision toggle thumb spacing in the options page

Before / After

IME Enter issue

Before:

IME Enter before

After:

IME Enter after

Notes

  • the existing duplicated import and chunk-size warnings from the project build are unchanged by this PR

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