Skip to content

bug: cold project open hangs on external volumes during bootstrap #23409

@codeg-dev

Description

@codeg-dev

Description

On macOS, opening a project from an external volume can hang for several seconds on the first request after a cold opencode serve start.

This shows up most clearly on /Volumes/* paths where two slow operations land in the request path:

  • git rev-list --max-parents=0 HEAD
  • FileWatcher.init() waiting on parcel-watcher subscribe

OpenCode version

1.14.17

Steps to reproduce

  1. Start opencode serve on macOS.
  2. Open a git project from /Volumes/....
  3. Hit GET /project/current?directory=<external-project> after a cold restart.
  4. Observe multi-second delay before the response returns.

Operating System

macOS 26.4.1

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)perfIndicates a performance issue or need for optimization

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions