Skip to content

Desktop: new session page has no file tree (button absent) with New layout designs enabled #42031

Closed as not planned

Description

@lqr949809771

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

  1. Open OpenCode Desktop (latest, v1.18.x).
  2. Keep New layout designs enabled (default).
  3. Click "New session" (app routes to /new-session).
  4. 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

Environment

  • OpenCode Desktop version: latest (v1.18.16)
  • OS: Windows 11 64-bit
  • Layout: New layout designs enabled (default)

Activity

  1. akhil2099 commented on Sep 3, 2026

    @akhil2099

    Reproduction on Linux

    I'm experiencing the same issue on OpenCode Desktop v1.18.27 on Linux.

    • OpenCode Desktop: v1.18.27
    • OS: Linux
    • Layout: New Desktop layout
    • Issue: The File Tree button/control is missing from the UI.
    • Workaround: Ctrl + \ 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.

  2. meshkatsoft-cell commented on Sep 5, 2026

    @meshkatsoft-cell

    The problem still persists...

    Environment

    • OS: Windows
    • OpenCode Desktop Version: 1.18.29
  3. SimBotBiz commented on Sep 11, 2026

    @SimBotBiz

    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.

  4. sunyitao commented on Sep 13, 2026

    @sunyitao

    v2 new session don't add context file from file explore

  5. XiaobinZhao commented on Sep 16, 2026

    @XiaobinZhao

    i need file tree, new session

  6. ks7tzr722s-max commented on Oct 4, 2026

    @ks7tzr722s-max

    Same problem here on OpenCode Desktop.

    Environment:

    • OpenCode Desktop: 2.0.22 (installed version on this machine)
    • OS: Windows 10 22H2, Build 19045
    • Layout: New layout designs enabled (default)

    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:

    • The File Tree / Navigator must be available whenever a project is open.
    • It must also be available on the New Session screen.
    • There must always be a clearly visible button to show or hide it, at any window size.
    • The keyboard shortcut must work in every state.
    • The selected state must persist after restarting OpenCode.
    • An update must not silently remove or disable this functionality.

    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.

  7. aaaking commented on Oct 14, 2026

    @aaaking

    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.

  8. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    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:

    • start the session (send the first prompt) and open the file tree on the regular session page, or
    • turn off New layout designs in settings to get the old layout back.

    We'd encourage upgrading to OpenCode v2 (the @opencode/cli package), where active development happens.

    Related issues, for reference:

    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.

  9. opencodejr commented on Oct 29, 2026

    @opencodejr
    Contributor

    Closing this as not planned. The missing file tree button on the /new-session page 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!

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions