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
- Open a project with a deep directory structure (50+ directories)
- Expand the root — child directories start loading in parallel
- 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
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_RESOURCESand the tree fails to load.Steps to reproduce
OpenCode version
v1.4.1
Operating System
Linux (Ubuntu 24.04), also reproducible on macOS