desktop: no Polish spellcheck suggestions when en-US is enabled alongside pl on Windows
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- electron, typescript
- Ambito
- desktop-dev
Direzione di ricerca
Start in the desktop main process where spellcheckLanguages is read and where the Electron context-menu event builds dictionarySuggestions. Reproduce on Windows with pl + en-US, then trace how languages are passed to session.setSpellCheckerLanguages and whether runtime menu changes are applied. Done means language changes take effect without restart and Polish suggestions appear when another Hunspell language is enabled, with manual verification noted.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
In OpenCode Desktop on Windows, misspelled Polish words get the red underline, but the right-click menu shows no Polish suggestions ("No Guesses Found", or only suggestions from other enabled languages).
This happens whenever another language that uses a downloaded Hunspell dictionary (.bdic) is enabled next to pl, and the app enables en-US next to pl by default (from the system's preferred languages). Polish itself is checked by the native Windows spellchecker here (there is no pl-*.bdic in Dictionaries/; this is my assumption, not verified).
I logged the context-menu event in the main process (params.misspelledWord / params.dictionarySuggestions) on Electron 44.9.1 (Chromium 152):
| Enabled languages | zdrowje suggestions |
|---|---|
pl + en-US (default) |
["drowse"] (English only) |
pl + lt |
Lithuanian only |
en-US + lt + de + pl |
English, Lithuanian and German ones; none from Polish |
pl only, from startup |
["zdrowie", "zdrowej", "zdroje", "zdrowe", "zdrowia"] (works) |
Also, changing the languages in the context menu while the app is running did not take effect until I restarted the app.
This is not an Electron version issue (an earlier version of this report said so; see the comments for the correction).
Workaround: untick every language except pl in the spellcheck language menu and restart the app. The choice is saved as spellcheckLanguages in opencode.settings.
Possible fixes: apply the menu change without a restart, and/or make suggestions from the native-checked language show up when Hunspell languages are also enabled (or avoid enabling en-US next to pl by default).
Caveat: this is based on observed behavior only; I did not verify it in Chromium's code.
Plugins
polystrata.autostart (local plugin, unrelated to the input/menu)
OpenCode version
Desktop 2.3.2 (CLI v2.3.2)
Steps to reproduce
- On Windows 11 with Polish as the only Windows language, open OpenCode Desktop 2.3.2 with default spellcheck languages (
pl+en-US). - In the prompt input type
zdrojefollowed by a space. It is underlined. - Right-click the word.
- No Polish suggestions (expected e.g.
zdrowie). - Untick
en-USin "Spellcheck Languages", restart the app, and repeat: suggestions appear.
Screenshot
Operating System
Windows 11 Pro 10.0.26300
Terminal
Not applicable: OpenCode Desktop
- Lingua principale
- TypeScript
- Stelle
- 227k
- Fork
- 30.7k
- Merge medio
- 3h 57m
- PR unite (30g)
- 484
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di anomalyco/opencode
-
[Site] Active section detection should respect scroll-margin-topForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaarea/web reproduced type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
anomalyco/opencode#65384 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area/cli type/feature version/v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
anomalyco/opencode#65379 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Shell tool: no upper bound on the timeout a model can ask for, so one call can hold a turn for hoursApertaarea/core platform/linux type/feature version/v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anomalyco/opencode#65254 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
inference/go type/feature
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
anomalyco/opencode#65148 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area/providers type/feature version/v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
anomalyco/opencode#64845 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di anomalyco/opencode
Issue simili
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offersForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertacatalog provider provider-compatibility
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
lidge-jun/opencodex#9037 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
slavakurilyak/awesome-ai-agents#1005 ·
-
kind/bug triage/unresolved
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
I maintainer di solito rispondono entro 1 giorno
-
effort:S P3 refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
nightscout/nocturne#3735 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
wpilibsuite/systemcore-blocks-interface#641 ·
I maintainer di solito rispondono entro 2 giorni