Skip to content

In the Linux desktop app (new layout), several menu items in the app menu are greyed out / disabled #40898

Closed as not planned

Description

@pavel-petroff

Description

Items affected:

  • File --> New Session
  • File --> Open Project...
  • View --> Toggle Sidebar
  • View --> Toggle Terminal
  • View --> Toggle File Tree

See screenshots below.

Image Image

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

  1. Launch OpenCode Desktop.
  2. Open the app menu (top-left "OpenCode" button) --> click File.
  3. Observe that New Session and Open Project... are disabled (grey).
  4. 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

  1. 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.
  2. Sidecar/server runs fine; sessions are created and listed correctly. Only the menu's enabled state is wrong.

Screenshot and/or share link

No response

Operating System

ZorinOS 18.1 (Ubuntu 24.04 + Wayland)

Terminal

Not relevant

Activity

  1. 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
  2. ks7tzr722s-max commented on Oct 4, 2026

    @ks7tzr722s-max

    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).

  3. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    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 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions