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
desktop: file tree unusable out of the box — showFileTree defaults to false with no Settings UI #56057
Факты в репорте подтверждены по свежей копии приложения 2.0.30:
Проверка и Результат
showFileTree в коде | 6 вхождений — только хранилище настроек
setShowFileTree (сеттер) | 1 вхождение — только определение, ни одного вызова
Значение по умолчанию | false (kk = { general: { showFileTree: !1 … } })
Строка в настройках | отсутствует (в каталоге 12 settings.general.row.*, файлового дерева нет)
Контраст | у showCustomAgents и строка в настройках, и переключатель есть
Thanks for the detailed check. I couldn't run the Desktop app in my sandbox, so I haven't seen this on screen. The code agrees with your findings, both in 2.0.30 and on the latest dev (b0d7621):
general.showFileTree defaults to false, and nothing calls setShowFileTree.
Settings → General has no row for it, unlike showCustomAgents.
The same setting also controls whether the "Toggle file tree" command (Ctrl+\ / Cmd+\) is registered, so that shortcut isn't available as a workaround either.
A maintainer with the Desktop app will need to confirm this and decide whether hiding the tree is intentional or a regression.
Additional evidence from #59047 (Windows x64, desktop 2.1.4), which confirms this report and shows the missing Settings row is not the only blocker.
general.showFileTree: true does not make the tree appear. That install already had it enabled in opencode.settings, and the file tree was still unreachable:
the sidebar toggle button.session-review-v2-sidebar-toggle (aria-label="Toggle File Tree" / "Mostrar u ocultar árbol de archivos") renders with disabled === true, reproduced in both a git repository and a non-git directory
no fileTree.toggle command in the command palette
[data-component="file-tree-v2"] is mounted but has height === 0 (223x0) with empty text
Setting fileTree.opened: true and tab: "all" in the persisted layout makes the tree render correctly (223x508, full project listing), so the tree itself works. The actual gate is fileTree.opened, not showFileTree, and fileTree.opened has no reachable UI control.
So wiring up the Settings row would not fix the issue on its own: the toggle that is supposed to open the tree is shipped disabled, so even with showFileTree on, the tree stays hidden.
Thanks for adding the 2.1.4 evidence. I checked current dev at 7b5b7a8020040d7ffc9cf59d4b5c6d7f8d33d3e0 and found two separate controls:
The legacy side-region file tree still opens only when both settings.visibility.fileTree() and layout.fileTree.opened() are true in screen-layout.ts.
The Review panel passes no disabled prop to SessionReviewV2SidebarToggle in panel.tsx, so current dev source does not explain a disabled Review-panel toggle.
PR #57539 is merged into beta; it removes the legacy tree there, while current dev still contains that gate. Could you confirm the exact 2.1.4 build/channel and whether the disabled control was the Review-panel sidebar toggle or the legacy file-tree command/menu? That will distinguish which state/control your report exercises. I have compared source and your report only; I have not reproduced the Desktop behavior.
Bundled CLI: resources/opencode-cli.version = 2.1.4; the standalone CLI of the same build reports v2.1.4.
Which control was disabled
The Review-panel sidebar toggle, not the legacy command/menu.
Observed on the web UI served by the same 2.1.4 server (same bundle):
<divdata-slot="session-review-v2-sidebar-toggle"><buttonclass="... session-review-v2-sidebar-toggle" disabledaria-label="Mostrar u ocultar árbol de archivos"></div>
disabled === true, inside [data-component="session-review-v2"], next to [data-component="session-review-v2-sidebar-root"] which contains [data-component="file-tree-v2"].
Separately: fileTree.toggle does exist in the View menu (labelKey: desktop.menu.toggleFileTree) but did not appear in the command palette in this build.
So both visibility.fileTree and layout.fileTree.opened exist in 2.1.4. Note that the settings key in this build is settings.v3.general.showFileTree (schema default false), which is a different key from visibility.fileTree.
On the missing disabled prop
2.1.4 does have one, in the file-panel variant of the toggle:
The other variant (get sidebarToggle(){ ... e.state.sidebar.toggle }) passes no disabled. That would explain the difference you found against current dev.
Scope caveat
In every observation the panel was in its empty state ("Selecciona un archivo para abrir" / "Select a file to open"), so placeholder was truthy. I did not test with a file actually open, so I cannot distinguish "disabled whenever no file is open" from "always disabled in 2.1.4". State at the time: settings.v3.general.showFileTree: true, layout.fileTree: {opened: false, tab: "changes"}; setting opened: true + tab: "all" rendered the tree (223x0 -> 223x508, full project listing).
The empty-state detail explains the disabled prop in current source. At 350dc1a, the file browser computes sidebarOpened = placeholder || state.opened(), then passes both opened={sidebarOpened()} and disabled={placeholder} to that button. While the file launcher is empty, its sidebar is forced open and its collapse button is disabled. The separate Review-tab variant still passes no disabled prop.
That explains why the button can be disabled without proving that disabling it caused the hidden tree. It does not explain your zero-height tree: the placeholder file browser should already be showing its sidebar. Removing disabled alone would not change its forced-open state.
The remaining distinction is whether the zero-height element belongs to that forced-open file-browser sidebar or the separately gated legacy tree. Opening a file would also test whether this button becomes enabled when placeholder becomes false. I have traced source against your bundle excerpt; I have not reproduced the Windows layout.
So the 223x0 reading was my measurement error, not a layout bug: I measured while the file panel was not the active dock tab, so the element was not rendered and getBoundingClientRect() returned 0. The ancestor chain I reported (scroll-view__viewport h=700 -> session-review-v2-sidebar-tree h=700 -> session-review-v2-sidebar h=783) is the forced-open placeholder sidebar you described.
Opening a file confirms the placeholder binding end to end:
State
toggle disabled
aria-expanded
tree
file launcher empty
true
true
rendered, 17 rows
AGENTS.md opened
false
true
rendered, toggle enabled
toggle clicked while file open
false
false
sidebar collapsed, file-tree-v2 unmounted
So the button is enabled exactly when placeholder becomes false, and it then behaves as a working collapse control. No disabled-state bug in this build.
What remains from my original report after this correction:
The Review-panel file tree in 2.1.4 is reachable and functional: Review -> Abrir archivo -> tree in the left sidebar of that panel.
Confirming on the current release, and the reproduction has changed since the report.
Desktop 2.2.5, macOS arm64, latest channel. general.showFileTree is still false by default and still has no Settings row, so the report stands. But setting it no longer brings the command back:
Set general.showFileTree: true and visibility.fileTree: true in drafts.sqlite (default.dat/settings.v3).
Set layout.fileTree.opened: true in opencode.global.dat/layout.
Quit and relaunch.
Result: the values persist, and View still shows only Toggle Sidebar and Toggle Terminal. No Toggle File Tree, and Ctrl+\ does nothing. So showFileTree no longer registers the command on 2.2.5.
The tree itself has not been removed. file-tree-v2 ships in the 2.2.5 bundle, rendered inside the file browser panel: file.browse ("Open file", View, ctrl+meta+p) opens that panel and the tree renders in its sidebar, with layout.fileTree.opened still false.
So there are two separate things left: the retired side-panel entry point (this report), and a discoverability gap on the new one — nothing in the UI points at file.browse, and it is right-side only with no way to place it on the left.
This was fixed in #57539, which removed the old side panel file tree and its hidden setting. The file tree now lives in the Review panel (Ctrl+Shift+R). If you still see this on the latest version, comment here and we'll reopen.
Activity
opencode-agent commentedon Oct 16, 2026
Thanks for the detailed check. I couldn't run the Desktop app in my sandbox, so I haven't seen this on screen. The code agrees with your findings, both in 2.0.30 and on the latest
dev(b0d7621):general.showFileTreedefaults tofalse, and nothing callssetShowFileTree.showCustomAgents.Ctrl+\/Cmd+\) is registered, so that shortcut isn't available as a workaround either.A maintainer with the Desktop app will need to confirm this and decide whether hiding the tree is intentional or a regression.
Related issues:
Ctrl+\still worked)showFileTreeand other settings by defaultrodrigoborquez commentedon Oct 25, 2026
Additional evidence from #59047 (Windows x64, desktop 2.1.4), which confirms this report and shows the missing Settings row is not the only blocker.
general.showFileTree: truedoes not make the tree appear. That install already had it enabled inopencode.settings, and the file tree was still unreachable:drafts.sqlite,opencode.global.dat/layout):"fileTree": {"opened": false, "width": 200, "tab": "changes"}button.session-review-v2-sidebar-toggle(aria-label="Toggle File Tree"/"Mostrar u ocultar árbol de archivos") renders withdisabled === true, reproduced in both a git repository and a non-git directoryfileTree.togglecommand in the command palette[data-component="file-tree-v2"]is mounted but hasheight === 0(223x0) with empty textSetting
fileTree.opened: trueandtab: "all"in the persisted layout makes the tree render correctly (223x508, full project listing), so the tree itself works. The actual gate isfileTree.opened, notshowFileTree, andfileTree.openedhas no reachable UI control.So wiring up the Settings row would not fix the issue on its own: the toggle that is supposed to open the tree is shipped disabled, so even with
showFileTreeon, the tree stays hidden.Dante-dan commentedon Oct 25, 2026
Thanks for adding the 2.1.4 evidence. I checked current
devat7b5b7a8020040d7ffc9cf59d4b5c6d7f8d33d3e0and found two separate controls:settings.visibility.fileTree()andlayout.fileTree.opened()are true inscreen-layout.ts.disabledprop toSessionReviewV2SidebarToggleinpanel.tsx, so currentdevsource does not explain a disabled Review-panel toggle.PR #57539 is merged into
beta; it removes the legacy tree there, while currentdevstill contains that gate. Could you confirm the exact 2.1.4 build/channel and whether the disabled control was the Review-panel sidebar toggle or the legacy file-tree command/menu? That will distinguish which state/control your report exercises. I have compared source and your report only; I have not reproduced the Desktop behavior.rodrigoborquez commentedon Oct 26, 2026
Build confirmed first, then which control.
Exact build/channel
FileVersion 2.1.4,ProductVersion 2.1.4.0, signedCN="Anomaly Innovations, Inc", installed at%LOCALAPPDATA%\Programs\@opencodedesktop.latest, fromresources/app-update.yml:resources/opencode-cli.version=2.1.4; the standalone CLI of the same build reportsv2.1.4.Which control was disabled
The Review-panel sidebar toggle, not the legacy command/menu.
Observed on the web UI served by the same 2.1.4 server (same bundle):
disabled === true, inside[data-component="session-review-v2"], next to[data-component="session-review-v2-sidebar-root"]which contains[data-component="file-tree-v2"].Separately:
fileTree.toggledoes exist in the View menu (labelKey: desktop.menu.toggleFileTree) but did not appear in the command palette in this build.Your source read matches the 2.1.4 bundle
The legacy gate is there verbatim:
So both
visibility.fileTreeandlayout.fileTree.openedexist in 2.1.4. Note that the settings key in this build issettings.v3.general.showFileTree(schema defaultfalse), which is a different key fromvisibility.fileTree.On the missing
disabledprop2.1.4 does have one, in the file-panel variant of the toggle:
The other variant (
get sidebarToggle(){ ... e.state.sidebar.toggle }) passes nodisabled. That would explain the difference you found against current dev.Scope caveat
In every observation the panel was in its empty state ("Selecciona un archivo para abrir" / "Select a file to open"), so
placeholderwas truthy. I did not test with a file actually open, so I cannot distinguish "disabled whenever no file is open" from "always disabled in 2.1.4". State at the time:settings.v3.general.showFileTree: true,layout.fileTree: {opened: false, tab: "changes"}; settingopened: true+tab: "all"rendered the tree (223x0->223x508, full project listing).Dante-dan commentedon Oct 26, 2026
The empty-state detail explains the disabled prop in current source. At
350dc1a, the file browser computessidebarOpened = placeholder || state.opened(), then passes bothopened={sidebarOpened()}anddisabled={placeholder}to that button. While the file launcher is empty, its sidebar is forced open and its collapse button is disabled. The separate Review-tab variant still passes no disabled prop.That explains why the button can be disabled without proving that disabling it caused the hidden tree. It does not explain your zero-height tree: the placeholder file browser should already be showing its sidebar. Removing
disabledalone would not change its forced-open state.The remaining distinction is whether the zero-height element belongs to that forced-open file-browser sidebar or the separately gated legacy tree. Opening a file would also test whether this button becomes enabled when
placeholderbecomes false. I have traced source against your bundle excerpt; I have not reproduced the Windows layout.rodrigoborquez commentedon Oct 26, 2026
Tested it — you were right, and the premise of my report was wrong.
With the file panel active (
Abrir archivo), the tree renders normally withlayout.fileTree.openedstillfalse:So the
223x0reading was my measurement error, not a layout bug: I measured while the file panel was not the active dock tab, so the element was not rendered andgetBoundingClientRect()returned 0. The ancestor chain I reported (scroll-view__viewporth=700 ->session-review-v2-sidebar-treeh=700 ->session-review-v2-sidebarh=783) is the forced-open placeholder sidebar you described.Opening a file confirms the
placeholderbinding end to end:disabledaria-expandedtruetrueAGENTS.mdopenedfalsetruefalsefalsefile-tree-v2unmountedSo the button is enabled exactly when
placeholderbecomes false, and it then behaves as a working collapse control. No disabled-state bug in this build.What remains from my original report after this correction:
Abrir archivo-> tree in the left sidebar of that panel.desktop.menu.toggleFileTree/fileTree.toggleproduced no visible change in this build, which may simply be the part refactor(app): retire the legacy side-panel file tree #57539 removes.settings.v3.general.showFileTreeistruein this install and does not appear to gate the Review-panel tree at all.I'll correct my duplicate #59047 as well. Sorry for the noise: the zero-height was my measurement, not the widget.
jox51 commentedon Nov 5, 2026
Confirming on the current release, and the reproduction has changed since the report.
Desktop 2.2.5, macOS arm64,
latestchannel.general.showFileTreeis stillfalseby default and still has no Settings row, so the report stands. But setting it no longer brings the command back:general.showFileTree: trueandvisibility.fileTree: trueindrafts.sqlite(default.dat/settings.v3).layout.fileTree.opened: trueinopencode.global.dat/layout.Result: the values persist, and View still shows only Toggle Sidebar and Toggle Terminal. No Toggle File Tree, and
Ctrl+\does nothing. SoshowFileTreeno longer registers the command on 2.2.5.The tree itself has not been removed.
file-tree-v2ships in the 2.2.5 bundle, rendered inside the file browser panel:file.browse("Open file", View,ctrl+meta+p) opens that panel and the tree renders in its sidebar, withlayout.fileTree.openedstillfalse.So there are two separate things left: the retired side-panel entry point (this report), and a discoverability gap on the new one — nothing in the UI points at
file.browse, and it is right-side only with no way to place it on the left.neriousy commentedon Nov 23, 2026
This was fixed in #57539, which removed the old side panel file tree and its hidden setting. The file tree now lives in the Review panel (Ctrl+Shift+R). If you still see this on the latest version, comment here and we'll reopen.