anomalyco / anomalyco/opencode

Directory picker caches failed listings until the dialog is reopened

Open
#49,518 0 comments 0 reactions 1 assignee View on GitHub

@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
  1. Open the directory picker and make its first file.list request fail.
  2. Restore access and search the same directory again.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.