Description
When an agent writes N files in quick succession, the file watcher calls loadFile / refreshDir synchronously for each event. This fires N parallel HTTP requests within milliseconds, saturating the browser connection pool and causing UI stalls.
Steps to reproduce
- Start a session and ask the agent to create or modify 10+ files at once
- Watch the Network tab — one request per file fires immediately
- With enough files the browser connection pool backs up and the UI freezes briefly
OpenCode version
v1.4.1
Operating System
Linux (Ubuntu 24.04), also reproducible on macOS
Description
When an agent writes N files in quick succession, the file watcher calls
loadFile/refreshDirsynchronously for each event. This fires N parallel HTTP requests within milliseconds, saturating the browser connection pool and causing UI stalls.Steps to reproduce
OpenCode version
v1.4.1
Operating System
Linux (Ubuntu 24.04), also reproducible on macOS