Repository navigation
Description
Summary
In the OpenCode desktop app the file explorer sidebar shows a stale listing. Files and folders created, renamed, moved, or deleted on disk do not appear or disappear until the app is restarted.
Environment
- opencode version: desktop
2.0.14(OpenCode.exe FileVersion 2.0.14.0); server/CLI also reportsv2.0.12 - OS: Windows 11 (
Windows_NT 10.0.26200) - Terminal: desktop app (GUI), no terminal environment
- Shell:
C:\WINDOWS\system32\cmd.exe - Install/channel: latest, installed at
%LOCALAPPDATA%\Programs\@opencodedesktop(updater channellatest) - Active plugins: none found in config
Reproduction
- Open a project in the OpenCode desktop app (e.g.
C:\Users\...\Projects\CubeSat). - Create a new folder named
hello(through the sidebar/new-folder action, or with an external tool). - Observe the sidebar file list —
hellodoes not appear. - Restart the app —
hellonow appears. - After restarting, create another file/folder — it again does not appear until the next restart.
The reverse is also observed: a file that was moved/deleted outside the app stayed listed in the sidebar until a restart.
Expected Behavior
The sidebar file list updates without a restart when files or folders are created, renamed, moved, or deleted on disk.
Actual Behavior
The sidebar keeps a stale snapshot: newly created items are missing and deleted/moved items remain visible. Reproducible consistently, both for changes made through the app and through external tools. Only a full app restart refreshes the list.
Additional Context
-
The server log shows a watcher is registered on the project root, plus watchers on
AGENTS.mdand the skill directories:message="watcher started" path="C:\Users\...\Projects\CubeSat" type=entries backend=node ignores=0 message="watcher started" path="C:\Users\...\Projects\CubeSat\AGENTS.md" type=file backend=node ignores=0but the client's file list never updates from those events.
-
The project was initially not a Git repository, and the server repeatedly logged:
level=WARN message="worktree discovery failed" directory="C:\Users\...\Projects\CubeSat" strategy=git error=Worktree.DirectoryUnavailableErrorAfter running
git init, the server successfully executesgit worktree list --porcelainand the warnings stop, but the sidebar still does not refresh. So fixing worktree discovery alone does not resolve the issue. -
Restarting only the desktop app appears to reconnect to the same shared background service (server
runid unchanged), which may preserve stale state; a full restart is required to see the correct listing. -
Concrete example from the session: the sidebar kept showing
docs/CubeSat-Summary.mdafter that file had been moved/renamed, and never showed the newly createddocs/星载软件与飞控/folder. -
Workaround: fully restart the desktop app.
Activity
github-actions commentedon Sep 22, 2026
This issue might be a duplicate of existing issues. Please check:
neriousy commentedon Oct 20, 2026
Thanks for the report. We're tracking this same Desktop file-sidebar refresh problem in #48451, so I'm closing this as a duplicate. Please follow that issue for updates.