anomalyco / anomalyco/opencode

File Picker (FFF) fails in root/home directories

Open
#44,494 1 comment 0 reactions 1 assignee View on GitHub

@kommander is already working on this.

Since Aug 23, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
Avg merge
7h 2m
Merged PRs (30d)
384

Description

Description

The file picker (FFF) consistently fails to initialize when OpenCode is run from root or home directories. The error message suggests using smaller per-project directories, but this is a limitation that should be handled more gracefully.

Error Message

Failed to init file picker: Can not run certain FFF features in a file system root or home directories. Consider smaller per-project directories.

Steps to Reproduce

  1. Open a terminal in root directory (/) or home directory (~)
  2. Launch OpenCode
  3. Attempt to use file picker functionality
  4. Observe the warning message

Expected Behavior

The file picker should either:

  • Work in all directories with appropriate performance warnings
  • Provide a more user-friendly error message
  • Automatically detect and handle large directory scans

Actual Behavior

Repeated warning messages appear in logs:

timestamp=2026-08-20T22:21:03.212Z level=WARN run=4d354d3a message="failed to initialize fff" error="Failed to init file picker: Can not run certain FFF features in a file system root or home directories. Consider smaller per-project directories."

Environment

  • OpenCode version: Latest dev build
  • OS: macOS 26.0.1
  • Terminal: iTerm2

Additional Context

This error appears multiple times across different sessions, suggesting it's a persistent issue rather than a one-time occurrence.

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.