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
@ autocomplete does not detect newly created files until OpenCode is restarted #38065
Expected Behaviour:
The @ autocomplete should stay synchronized with the project and immediately suggest newly created files without requiring a restart.
Actual Behaviour:
The @ autocomplete appears to use a stale file index.
The filesystem itself is updated correctly, and the file exists on disk, but the autocomplete does not refresh until OpenCode is restarted.
Additional Observations:
Happens for both manually created files and AI-created files.
Existing files are suggested normally.
Restarting OpenCode always fixes the problem temporarily.
Activity
github-actions commentedon Jul 21, 2026
This issue might be a duplicate of existing issues. Please check:
@ file mentions do not include files created after startup— identical symptom: new files missing from@autocomplete until restart, same Windows/ripgrep root cause analysisThe TUI file index should provide a way to refresh the file list on demand— same stale file index problem, also on Windows, requests a manual refresh command as workaroundlakshayofficial commentedon Aug 22, 2026
also facing similar issue
neriousy commentedon Oct 1, 2026
Closing as a duplicate of #32747. Same bug:
@mentions don't see files created after startup until restart. Tracking in #32747.