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
[Bug] Web file tree does not refresh after git operations add new directories #18504
When using OpenCode's web interface, the file tree sidebar does not update to show new directories/files that are added via git reset --hard, git pull, or git checkout operations performed by the agent or terminal.
Steps to Reproduce
Open OpenCode web UI with a project that has git sub-repositories
Have the agent (or manually) run git reset --hard origin/main on a repo where the remote has new directories not present locally
Observe the file tree sidebar — new directories do not appear
Verify with ls in the terminal that the directories exist on disk
Expected Behavior
The file tree should detect filesystem changes (new directories/files) after git operations and update accordingly.
Actual Behavior
The file tree remains stale and only shows the directory listing from when the session started (or when the tree was last manually expanded). New directories added by git operations are invisible in the UI until the browser page is fully reloaded.
Environment
OpenCode web interface (Cloud Workstation)
Linux (Debian-based container)
Filesystem: persistent home disk + GCS FUSE mount
Suggested Fix
Consider adding a filesystem watcher (e.g., fs.watch or polling) that detects changes in expanded directories, or expose a manual "Refresh" action in the file tree context menu.
This issue might be a duplicate of existing issues. Please check:
[FEATURE]:文件树中的内容不会由于打开的文件夹内容变化而自动刷新 #14449: File tree content does not automatically refresh when opened folder content changes (same core issue — web file tree staleness after filesystem changes, open)
Activity
github-actions commentedon Mar 21, 2026
This issue might be a duplicate of existing issues. Please check:
If these cover the same problem, consider adding context there rather than opening a new issue.
PabloVitasso commentedon Mar 25, 2026
I would gladly welcome manual "refresh" or "reload" button in opencode UI in the file panel.
github-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.