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
The TUI file index should provide a way to refresh the file list on demand. #35841
The opencode-cli TUI file auto-completion index (triggered by typing @) does not update when new files are created outside the session or generated by the AI agent. The file list remains static based on the initial workspace scan at startup, and there is no built-in mechanism or command to manually trigger a re-scan.
Expected Behavior
The TUI file index should provide a way to refresh the file list on demand.
Note: I understand that avoiding constant file watching might be a deliberate design choice to optimize performance and efficiency. However, adding at least a manual command (e.g., /refresh, /sync) or a shortcut key to let users trigger a workspace re-scan on demand would be highly appreciated and solve this UX bottleneck.
Actual Behavior
The @ auto-completion dropdown only shows files that existed when opencode was launched.
Newly created files are invisible to the auto-complete dropdown.
There are no commands or shortcuts available to refresh this state inside the TUI.
The only workaround is to completely exit (/exit) and restart the CLI session.
Troubleshooting Attempted
Looked for TUI commands like /refresh or /reload - none exist or work for this purpose.
Verified that typing the full path manually still works, confirming the backend can read the file, but the TUI autocomplete UI layer is completely stale.
Configuration
Watcher config: None (Default settings, no custom opencode.json used)
Plugins
None
OpenCode version
opencode-cli v1.17.15
Steps to reproduce
Open a project directory in Windows Terminal using PowerShell, and run opencode.
In a separate terminal tab or via an external editor, create a new file (e.g., src/new_script.js).
Return to the opencode TUI session and type @ in the input prompt to trigger the file autocomplete list.
Observe: The newly created file src/new_script.js is missing from the list.
Search for any manual refresh command - none is available. A full restart of the CLI is required to update the list.
Activity
github-actions commentedon Jul 8, 2026
This issue might be a duplicate of existing issues. Please check:
@file autocomplete does not include files created after startup, also on Windows Terminal, with analysis pointing to staleripgreplayerstate in the filesystem search service.github-actions commentedon Sep 7, 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.