Skip to content

File tree exhausts browser connection pool when many directories expand at once #21853

@Dredok

Description

@Dredok

Description

When the file tree has many directories and several expand simultaneously (e.g. on initial load or after switching projects), the app fires one HTTP request per directory with no concurrency limit. Browsers cap per-host connections at ~6, so the remaining requests queue up. With enough directories this triggers ERR_INSUFFICIENT_RESOURCES and the tree fails to load.

Steps to reproduce

  1. Open a project with a deep directory structure (50+ directories)
  2. Expand the root — child directories start loading in parallel
  3. Observe the Network tab: dozens of requests fire at once, many stall or fail

OpenCode version

v1.4.1

Operating System

Linux (Ubuntu 24.04), also reproducible on macOS

Metadata

Metadata

Assignees

Labels

perfIndicates a performance issue or need for optimizationwebRelates to opencode on web / desktop

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