Description
Description
When creating a new session in the OpenCode Desktop app, the file tree cannot be shown at all. There is no file tree button anywhere on the new-session screen.
With New layout designs enabled (the default), the desktop /new-session page renders only the prompt composer. The file tree (and its toggle button) do not exist on this page — not in the titlebar, not in the side panel. Expected: a way to open the file tree / project explorer for the session (button, toggle, or sidebar), like the old layout.
Repro
- Open OpenCode Desktop (latest, v1.18.x).
- Keep New layout designs enabled (default).
- Click "New session" (app routes to
/new-session). - Look for the file tree / project explorer or its toggle button.
Expected: file tree accessible (button visible or panel in the sidebar).
Actual: no file tree button exists at all; nothing to open the file tree.
Impact
Users on the new layout cannot browse the project in a session, making file references and navigation much harder.
Related
- Desktop new-session page cannot toggle terminal #33119 — Desktop new-session page cannot toggle terminal (same class of issue:
/new-sessiondraft page renders only the prompt composer, missing panels mounted on the real session route) - fix(app): advanced settings toggles for desktop toolbar buttons do nothing in new layout #29951 — Advanced settings toggles for desktop toolbar buttons do nothing in new layout (V2 titlebar missing file-tree button)
- [BUG] Web UI: File tree toggle hidden by desktop() gate in settings, and panel not open by default #34223 — File tree toggle hidden by desktop() gate in settings, panel not open by default
- PR fix(app): add file tree toggle to new session header #34828 — "fix(app): add file tree toggle to new session header" (appears related; user still cannot see it on latest release)
Environment
- OpenCode Desktop version: latest (v1.18.16)
- OS: Windows 11 64-bit
- Layout: New layout designs enabled (default)
Activity
akhil2099 commentedon Sep 3, 2026
Reproduction on Linux
I'm experiencing the same issue on OpenCode Desktop
v1.18.27on Linux.v1.18.27Ctrl + \successfully toggles and opens the File Tree.This confirms that the File Tree functionality itself is working, but the UI control/button is missing or not being rendered.
Expected behavior
The File Tree toggle should be visible in the Desktop UI so users can discover and open the project file tree without having to know the keyboard shortcut.
meshkatsoft-cell commentedon Sep 5, 2026
The problem still persists...
Environment
SimBotBiz commentedon Sep 11, 2026
This is utterly annoying, I cannot browse the project to reference plans or files, the option under view / show or hide sidebar is grayed out.
sunyitao commentedon Sep 13, 2026
v2 new session don't add context file from file explore
XiaobinZhao commentedon Sep 16, 2026
i need file tree, new session
ks7tzr722s-max commentedon Oct 4, 2026
Same problem here on OpenCode Desktop.
Environment:
Problem:
After the layout changes the Navigator / File Tree is no longer reliably visible. On a new session screen it can disappear completely, and when the window is narrower it collapses without a visible toggle. The project structure is then missing, which makes working in a project much harder.
Expected behavior:
Please treat the File Tree / Navigator as a permanent core part of the Desktop UI and do not remove or change its availability again in future layout updates.
Similar file tree reports already exist (see the Related section above), so this is not an isolated case.
aaaking commentedon Oct 14, 2026
Beyond the file tree, the draft screen also breaks the line-selection-to-context flow: on a session screen you can select lines in the file viewer and press Mod+Shift+L (context.addSelection) to attach them to the composer. On /new-session there is no panel at all, so you cannot gather code context before the first prompt — you have to send a placeholder message just to promote the draft into a session. Binding the file panel to the selected workspace/worktree instead of a session would cover both use cases.
opencodejr commentedon Oct 28, 2026
Thanks for the detailed report, @lqr949809771!
This is about OpenCode Desktop v1.18.16, which is OpenCode v1. v1 only gets fixes for critical bugs (data loss, security problems, or crashes and breakage with no workaround), so this is unlikely to be fixed in v1. In the meantime, you can:
We'd encourage upgrading to OpenCode v2 (the
@opencode/clipackage), where active development happens.Related issues, for reference:
/new-session(the terminal can't be toggled there)PR #34828, which would have added this toggle to the new session header, was closed without being merged. That's likely why you don't see the button on the latest release.
If you think this is critical, or you can reproduce it on v2, please reply here and we'll take another look.
XiaobinZhao commentedon Oct 29, 2026
https://github.com/valledemena/opencode-legacy-patch
the patch ; back to old layout
opencodejr commentedon Oct 29, 2026
Closing this as not planned. The missing file tree button on the
/new-sessionpage with New layout designs enabled was reported on OpenCode Desktop v1.18.16 (v1), and v1 only gets fixes for critical bugs. We didn't hear back that it's critical or that it also happens on v2.In the meantime, you can start the session and open the file tree on the regular session page, or turn off New layout designs. If you can reproduce this on OpenCode v2 (
@opencode/cli), please comment here or open a new issue with the v2 version and steps, and we'll take another look. Thanks again for the detailed report!