anomalyco / anomalyco/opencode
File Picker (FFF) fails in root/home directories
Open
@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
- Open a terminal in root directory (/) or home directory (~)
- Launch OpenCode
- Attempt to use file picker functionality
- 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
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.