[PR #4201] Only send bash updates every 200ms #10894

Closed
opened 2026-02-16 18:15:39 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4201

State: closed
Merged: No


Right now bash tool updates are sent to UI for every update on output stream.
Each update is a complete output till not ( not delta ) so for high volume output commands like adb logcat or dmesg, each update (new line / character ) leads to a 2MB of json for UI to parse.
With this change we buffer for 200ms before sending one big chunk for UI to process rather than lots of big chunks for each character / line update.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4201 **State:** closed **Merged:** No --- Right now bash tool updates are sent to UI for every update on output stream. Each update is a complete output till not ( not delta ) so for high volume output commands like adb logcat or dmesg, each update (new line / character ) leads to a 2MB of json for UI to parse. With this change we buffer for 200ms before sending one big chunk for UI to process rather than lots of big chunks for each character / line update.
yindo added the pull-request label 2026-02-16 18:15:39 -05:00
yindo closed this issue 2026-02-16 18:15:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10894