anomalyco / anomalyco/opencode
Directory picker caches failed listings until the dialog is reopened
@kommander is already working on this.
Since Sep 17, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
On dev 88c6c7abc, createDirectorySearch caches a rejected directory listing as a successful empty array. If the connection or directory permissions recover, typing again in the same dialog cannot discover its children. Reopening the dialog is required.
Related to #41412 and #39434. The home-listing fallback from #41158 is already merged; this is a remaining recovery bug.
Plugins
None
OpenCode version
Current dev, 88c6c7abc
Steps to reproduce
- Open the directory picker and make its first file.list request fail.
- Restore access and search the same directory again.
- The cached empty result prevents another request.
A regression test against the real createDirectorySearch fails before evicting rejected listings and passes after. Successful listings remain cached. I can submit the small fix with that test.
Operating System
Arch Linux
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.