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
v1.17.x regression: 'fff scan timed out' crashes app in home directory #31682
Running opencode in the home directory (~) crashes with Unexpected server error on v1.17.0 and v1.17.1. The same scenario works fine on v1.16.2.
Steps to Reproduce
Install opencode v1.17.1
cd ~
Run opencode
Expected Behavior
opencode should start normally (or gracefully handle the large directory), as it did in v1.16.2.
Actual Behavior
Crashes immediately with:
Error: Unexpected server error. Check server logs for details.
at <anonymous> (/$bunfs/root/chunk-j3wpssn9.js:8:7615)
at processTicksAndRejections (native:7:39)
Server log shows:
level=ERROR message=failed ref=err_846e2c9b error="fff scan timed out" cause="Error: fff scan timed out\n at KU (/$bunfs/root/chunk-kxc6dk47.js:12:2852)"
Home directory size: ~28,000 files within 4 levels depth, 122 top-level directories
Suggestion
The fff scan timeout should be handled gracefully — either by extending the timeout for large directories, skipping the scan with a warning, or falling back to lazy indexing. A scan timeout should not crash the entire application.
Reacted by Andrey Kuleshov, Maxim Ivanov, Luc Leray, Denis K and Timo
Additional confirmation from another macOS arm64 setup:
1.17.1 crashes from $HOME with the same Unexpected server error / fff scan timed out path.
The crash still reproduces with --pure and with all external TUI plugins disabled, so it is not caused by user TUI plugins.
In my setup, opencode upgrade 1.17.0 made the same $HOME startup stable again. That differs slightly from the original report's version table, but may help narrow affected builds/configs.
Thanks for already fixing this in the upcoming release.
Activity
github-actions commentedon Jun 10, 2026
This issue might be related to existing issues. Please check:
kaatula commentedon Jun 10, 2026
+1
Worth noting:
I use opencode under WSL, repo is in mounted file system.
redbaron commentedon Jun 10, 2026
Why does
fffscan anything on the initial start? There is no prompt yet.thdxr commentedon Jun 10, 2026
fixed in upcoming release
JosXa commentedon Jun 10, 2026
Additional confirmation from another macOS arm64 setup:
1.17.1crashes from$HOMEwith the sameUnexpected server error/fff scan timed outpath.--pureand with all external TUI plugins disabled, so it is not caused by user TUI plugins.opencode upgrade 1.17.0made the same$HOMEstartup stable again. That differs slightly from the original report's version table, but may help narrow affected builds/configs.Thanks for already fixing this in the upcoming release.