[Bug] Cannot disable spell checker in composer when typing prompts in Vietnamese - red underlines on Windows
Description
The spell checker cannot be disabled in the OpenWork desktop app on Windows. When typing prompts in Vietnamese (or any non-English language), every non-English word gets a red squiggly underline. This is extremely distracting and there is no UI toggle to disable it.
Important: This is NOT caused by the Windows OS spell checker. All spell check/autocorrect options in Windows 11 have been turned off, yet the red underlines still appear in OpenWork. The spell checker is built into the Electron/Chromium engine used by OpenWork and operates independently of the OS settings.
This is a known issue in the underlying OpenCode desktop app (https://github.com/anomalyco/opencode/issues/32155) which has been assigned to a maintainer, but the fix has not yet been released.
Steps to Reproduce
- Open OpenWork on Windows
- Type a prompt in Vietnamese (e.g., "Xin chào, bạn có thể giúp tôi viết code không?")
- Every Vietnamese word is underlined in red as a spelling error
- There is no option in Settings to turn spell checker off
- Even with all spell check/autocorrect options disabled in Windows 11 Settings, the red underlines persist in OpenWork
Expected Behavior
Users should be able to disable the spell checker, especially when typing in non-English languages. Either:
- A toggle in OpenWork Settings (e.g., Settings > Appearance or Preferences) to turn spell check on/off
- Or the ability to set the spell checker language
- Or respect the OS-level spell check settings
Actual Behavior
The Electron/Chromium built-in spell checker is always enabled in OpenWork on Windows and marks every non-English word as incorrect. The Windows 11 OS spell check settings have no effect on it.
Workaround (tested and confirmed working)
Users can disable the spell checker by opening DevTools (Ctrl+Shift+I or right-click > Inspect) and running the following snippet in the Console. This code can also be saved as a DevTools Snippet (Sources > Snippets) for quick reuse each session:
// Disable spellcheck on all editable elements
document.querySelectorAll('[contenteditable="true"], textarea').forEach(el => {
el.spellcheck = false;
el.setAttribute('spellcheck', 'false');
});
// Watch for new elements and disable spellcheck on them too
new MutationObserver(() => {
document.querySelectorAll('[contenteditable="true"]:not([spellcheck="false"])').forEach(el => {
el.spellcheck = false;
el.setAttribute('spellcheck', 'false');
});
}).observe(document.body, { childList: true, subtree: true });
Environment
- OS: Windows 11
- OpenWork version: v0.17.7
Related Issues
- https://github.com/anomalyco/opencode/issues/32155 - Desktop App: Spell Checker annoyance (OpenCode repo)
- https://github.com/anomalyco/opencode/issues/32158 - Cannot disable the automatic spell checker (OpenCode repo)
Hi @dungphan0038 @benjaminshafii @OmarMcAdam , Working on this. Plan: disable Chromium spellcheck by default in the desktop app, add a Settings → Appearance → Composer spell check toggle, and sync the preference to the composer + Electron session. PR coming shortly.
Opened PR #2443 for this. It disables composer spellcheck by default and adds a Settings toggle. @dungphan0038 @benjaminshafii @OmarMcAdam
Many thanks @taneja-garvit 🙏
@taneja-garvit Please take a look at this issue. Thank you 🙏. https://github.com/different-ai/openwork/issues/2440
@dungphan0038 sure will check it tonight.
closed due to age, please reopen and tag me if still valid