Skip to content

desktop: file sidebar does not refresh when files or folders change on disk #50666

Closed as duplicate

Description

@Focus786

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 reports v2.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 channel latest)
  • Active plugins: none found in config

Reproduction

  1. Open a project in the OpenCode desktop app (e.g. C:\Users\...\Projects\CubeSat).
  2. Create a new folder named hello (through the sidebar/new-folder action, or with an external tool).
  3. Observe the sidebar file list — hello does not appear.
  4. Restart the app — hello now appears.
  5. 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.md and 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=0
    

    but 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.DirectoryUnavailableError
    

    After running git init, the server successfully executes git worktree list --porcelain and 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 run id 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.md after that file had been moved/renamed, and never showed the newly created docs/星载软件与飞控/ folder.

  • Workaround: fully restart the desktop app.

Activity

  1. github-actions commented on Sep 22, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. neriousy commented on Oct 20, 2026

    @neriousy
    Member

    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.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions