Repository navigation
Done
Labels
Description
Summary
The desktop app's hamburger menu (top-left) and its "CLI telepítése…" submenu render message/status strings — including raw {{path}} and {{error}} template placeholders — instead of the menu item labels, while the underlying actions still work correctly. Example: the item labeled "A telepítés nem sikerült" actually opens Discord (the action is right, the label is wrong). All possible states (success + failure + retry) are listed at once.
Environment
- opencode version: 2.2.5 (desktop app ProductVersion 2.2.5.0, bundled CLI v2.2.5)
- OS: Windows_NT 10.0.26300 (win32 x64)
- Terminal: Unavailable: running in the desktop (Electron) app
- Shell: C:\WINDOWS\system32\cmd.exe
- Install/channel: latest (desktop installer + bundled CLI)
- Active plugins: none found in config
Reproduction
- Windows machine where the
opencodeCLI is not on PATH (only the bundledresources/opencode-cli.exeexists); UI language: Hungarian. - Open the desktop app's hamburger menu (top-left corner).
- Open the "CLI telepítése…" submenu.
- Observe the submenu labels (and the parent menu items).
Expected Behavior
Each menu item shows its own action label, e.g.:
CLI telepítve ide: <path>/Indítsa újra a terminált…Discord megnyitása(or whatever the action really is)Újra/Újraindítás
Actual Behavior
A CLI telepítve ide: {{path}} Indítsa újra a terminál…— raw{{path}}placeholder, concatenated status textA telepítés nem sikerült— a status message used as a label; the item's action opens DiscordNem sikerült telepíteni a CLI-t: {{error}}— raw{{error}}placeholderÚjra,Újraindítás— listed alongside the messages, so success and failure states appear simultaneously- Parent menu:
Naplók exportálása.t…is truncated mid-word (ellipsis splits the string)
The actions point to the right place (verified: one item opens Discord); only the labels are wrong — the menu appears to be fed from the message/i18n catalog (strings with interpolation placeholders) instead of the menu-label keys.
Additional Context
- Reproducible consistently (every time the menu is opened with the CLI missing from PATH).
- Screenshot available on request (shows the menu + submenu exactly as described).
- Searched existing issues: no match for raw
{{...}}placeholders in menus, and no open Hungarian locale issues. - After placing an
opencode.cmdshim on PATH (pointing at the bundled CLI), the "CLI telepítése…" entry may disappear on next app start (CLI detected) — the original repro requires the CLI to be absent from PATH. - No plugins, no recent config changes related to the menu.
Activity
opencodejr commentedon Nov 2, 2026
Thanks for the detailed report. I can confirm this on 2.2.5, and it still happens on the latest
dev(67139d6).The Hungarian translations for the desktop app's native menu are assigned to their menu items by position. The list is missing the first few entries, so every label moves up a few items. That is why Support Forum (which opens Discord) shows "A telepítés nem sikerült", OpenCode Documentation and Share Feedback show the CLI install messages with raw
{{path}}/{{error}}, and Report a Bug shows "Újraindítás". The actions themselves are correct.Croatian, Icelandic and Lithuanian have the same problem; other languages are not affected. Until it's fixed, switching the app language to English (or any other unaffected language) shows the correct labels. The script below prints the labels each version resolves for a locale.
Reproduction script (check-hu-menu.ts)
Run it:
bun check-hu-menu.tsaskvittorio commentedon Nov 2, 2026
Investigation update — local analysis of the packaged app (hu-specific)
Environment: desktop app 2.2.5.0 on Windows 10.0.26300, CLI not on PATH at the time (
opencodeonly shipped asresources/opencode-cli.exe), UI language Hungarian.What we verified
The English UI renders correct labels (tested by relaunching with
OpenCode.exe --lang=en): parent menu showsInstall CLI…,Settings,Reload Webview,Restart,Export Logs,New Session. So the label source resolves correctly inen.Actions are correct, labels are not (reporter): items in the "CLI telepítése…" submenu perform the right action — e.g. one opens the Discord invite (
https://discord.com/invite/opencodefromdesktop.menu.supportForum) — while displaying unrelated status text.The submenu renders message templates as labels, with unsubstituted placeholders, and shows success and failure states at the same time:
A CLI telepítve ide: {{path}} Indítsa újra a terminált az 'opencode2' parancs használatához.desktop.cli.installed.messageA telepítés nem sikerültdesktop.cli.failed.titleÚjraNem sikerült telepíteni a CLI-t: {{error}}desktop.cli.failed.messageÚjraindításdesktop.menu.restart{{path}}/{{error}}are never filled → state/message strings are being rendered in a label position.Bundle analysis (
resources/app.asar, 225 MB):Object.fromEntries([...values].map((t, n) => [e[n], t]))(keys imported from the main chunk).desktop.menu.installCli → CLI telepítése…,desktop.menu.reloadWebview → Webview újratöltése,desktop.menu.exportLogs → Naplók exportálása,desktop.menu.supportForum → Támogatási fórum,desktop.menu.documentation → OpenCode dokumentáció,desktop.menu.toggleTerminal → Terminál ki- és bekapcsolása,desktop.cli.installed.message → A CLI telepítve ide: {{path}}…— all pair correctly. The hu translation table itself is not shifted/missing entries (at least through the menu + cli block).desktop.cli.installed.message/desktop.cli.failed.*we could find is the native message box (Si.showMessageBox({type:'info'|'error', …})in the CLI install-result handler) — nolabelKey: desktop.cli.*menu reference was located, so the component that builds this submenu remains unidentified.{type:'item', labelKey:'desktop.menu.installCli', action:'app.installCli'}— no submenu there; the submenu shown in the screenshot comes from another component.Minor: a parent menu item renders truncated mid-word:
Naplók exportálása.t….Questions for maintainers
{{path}}/{{error}}templates are rendered without values, and success + failure states appear simultaneously.enandhuif label resolution is key-based?Local workarounds tried
--lang=en→ labels correct (per-launch).opencode.cmd→resources/opencode-cli.exe) so the CLI is detected — may remove the "Install CLI…" entry after restart.szabozsolt20 commentedon Nov 7, 2026
+1 confirmed on the current release: desktop app 2.2.6 (bundled CLI 2.2.6),
Windows 10 19045, UI language Hungarian.
Same misalignment in
app/src/runtime/i18n/hu.ts: thedesktoparray has 68entries while
DESKTOP_NATIVE_KEYShas 75, so every native string is shifted by6 and menu items land on the wrong labels:
hr, is and lt have the same 68-entry array shape, so they are affected the same
way. Switching the app language to English restores correct labels.