Skip to content

v1.17.x regression: 'fff scan timed out' crashes app in home directory #31682

Closed

Description

@liugc

Bug Description

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

  1. Install opencode v1.17.1
  2. cd ~
  3. 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)"

Regression Confirmation

Version Result
1.16.2 ✅ Works — TUI launches normally in home directory
1.17.1 ❌ Crashes — fff scan timed out

Environment

  • OS: macOS (Darwin 25.3.0, arm64)
  • opencode version: 1.17.1 (regression), 1.16.2 (working)
  • 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.

Activity

  1. github-actions commented on Jun 10, 2026

    @github-actions
    Contributor

    This issue might be related to existing issues. Please check:

  2. kaatula commented on Jun 10, 2026

    @kaatula

    +1

    Worth noting:
    I use opencode under WSL, repo is in mounted file system.

  3. redbaron commented on Jun 10, 2026

    @redbaron

    Why does fff scan anything on the initial start? There is no prompt yet.

  4. thdxr commented on Jun 10, 2026

    @thdxr
    Member

    fixed in upcoming release

  5. JosXa commented on Jun 10, 2026

    @JosXa
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions