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
[BUG] Web UI: File tree toggle hidden by desktop() gate in settings, and panel not open by default #34223
When using OpenCode via opencode web (browser), the file tree cannot be enabled because:
The "Show file tree" toggle is hidden — it's inside the AdvancedSection in settings-general.tsx, which is gated behind <Show when={desktop()}>. Since desktop() checks platform.platform === "desktop", it's always false in the browser/web context, hiding the toggle entirely.
layout.fileTree.opened defaults to false — even when visibility is forced on (e.g. production where !newLayoutDesigns() is true), the panel has width: 0px because opened is false.
The keyboard shortcut Ctrl+\ / Cmd+\ does toggle the tree open, but there is no UI affordance for web users to discover this.
Expected Behavior
Web users should be able to find and toggle the "Show file tree" setting in Settings → General
The file tree should be discoverable without needing to know the Ctrl+\ keyboard shortcut
Plugins
No response
OpenCode version
1.17.11
Steps to reproduce
Run opencode web (or use the production app at app.opencode.ai)
Open the web UI in a browser
Navigate to a session page (e.g. /{base64_dir}/session/{session_id})
Open Settings → General → scroll down — there is no "Show file tree" option
There is no file tree panel area appears on the right side
Wanted to note also that the issues described are also affecting the "Toggle File Tree" on the new layout in Desktop.
Settings -> General -> Advanced -> File Tree (as stated by OP that it is visible in Desktop) is defaulted to false, so unless the user manually knows to go to that advanced setting to flip it to true, the File Tree can't be opened. In the old layout the visible() short-circuits to true regardless of the preference:
Activity
github-actions commentedon Jun 27, 2026
This issue might be a duplicate of existing issues. Please check:
isDesktopV2gate regression — closely related to the `desktop()</code> gate hiding the file tree toggle in web context described hereisDesktopV2gate regression causing missing buttons in old layout — same root gating patternFor keybind-related issues, please also check our pinned keybinds documentation: #4997
rajsinghtech commentedon Jun 29, 2026
+1
kyjus25 commentedon Jun 29, 2026
+1
kyjus25 commentedon Jun 29, 2026
Wanted to note also that the issues described are also affecting the "Toggle File Tree" on the new layout in Desktop.
Settings -> General -> Advanced -> File Tree(as stated by OP that it is visible in Desktop) is defaulted tofalse, so unless the user manually knows to go to that advanced setting to flip it totrue, the File Tree can't be opened. In the old layout thevisible()short-circuits totrueregardless of the preference:github-actions commentedon Aug 29, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.