You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
In the Linux desktop app (new layout), several menu items in the app menu are greyed out / disabled #40898
The corresponding titlebar buttons work fine (e.g. the "New session" button), so this is isolated to the menu layer.
Plugins
No plugins
OpenCode version
1.18.14
Steps to reproduce
Launch OpenCode Desktop.
Open the app menu (top-left "OpenCode" button) --> click File.
Observe that New Session and Open Project... are disabled (grey).
Click View - Toggle Sidebar, Toggle Terminal, Toggle File Tree are also disabled.
Expected behavior: All menu items should be enabled when the app is running and connected (server status is green).
Note: This one can potentially be a duplicate of #39785, as it appears to have the same root cause.
Additional Information
The issue occurs across all desktop versions I've tried in my Linux environment, and also after fully resetting the app's UI state (~/.config/ai.opencode.desktop) - so it is not stale/corrupt state.
Sidecar/server runs fine; sessions are created and listed correctly. Only the menu's enabled state is wrong.
changed the title [-]In the desktop app (new layout), several menu items in the app menu are greyed out / disabled[/-][+]In the Linux desktop app (new layout), several menu items in the app menu are greyed out / disabled[/+]on Aug 6, 2026
Windows confirmation with root cause — OpenCode Desktop 2.0.22.
The menu template maps these entries to commands: sidebar.toggle, terminal.toggle, fileTree.toggle. The renderer enables a command entry only if that id exists in the registry:
let n = options.find(o => o.id === id); return n ? n.disabled ?? false : true
An unknown id therefore means permanently disabled. Registration counts in app.asar: sidebar.toggle = 0, terminal.toggle = 0, fileTree.toggle = 1 (wrapped in a condition). Entries that use action/role instead of command are unaffected.
Not stale state: reproduced after a clean start, and window width makes no difference (checked 1121 px and 1324 px — the sidebar itself renders fine at both, so this is purely the menu layer).
Workaround for the sidebar without the menu: Settings → General → row "Tabs" → "Vertical" (appearance.tabLayout).
Activity
[-]In the desktop app (new layout), several menu items in the app menu are greyed out / disabled[/-][+]In the Linux desktop app (new layout), several menu items in the app menu are greyed out / disabled[/+]ks7tzr722s-max commentedon Oct 4, 2026
Windows confirmation with root cause — OpenCode Desktop 2.0.22.
The menu template maps these entries to commands:
sidebar.toggle,terminal.toggle,fileTree.toggle. The renderer enables a command entry only if that id exists in the registry:let n = options.find(o => o.id === id); return n ? n.disabled ?? false : trueAn unknown id therefore means permanently disabled. Registration counts in
app.asar:sidebar.toggle= 0,terminal.toggle= 0,fileTree.toggle= 1 (wrapped in a condition). Entries that useaction/roleinstead ofcommandare unaffected.Not stale state: reproduced after a clean start, and window width makes no difference (checked 1121 px and 1324 px — the sidebar itself renders fine at both, so this is purely the menu layer).
Workaround for the sidebar without the menu: Settings → General → row "Tabs" → "Vertical" (
appearance.tabLayout).thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊