Skip to content

Shell tool text output causes UI jank on high-volume commands #25459

@nbardy

Description

@nbardy

Bug

Shell tool data events trigger a React re-render on every chunk, while binary_progress already throttles to 1s intervals via OUTPUT_UPDATE_INTERVAL_MS.

Impact

Commands that emit thousands of lines (build warnings, manifest generation with ~2000 duplicate warnings, verbose test runs) pin the UI and make the terminal unresponsive until the command completes.

Repro

  1. Run a shell command that produces several thousand lines of stdout quickly
  2. Observe that the UI becomes laggy / unresponsive

Proposal

Apply the same OUTPUT_UPDATE_INTERVAL_MS throttling to text output that's already applied to binary_progress. The final chunk should flush immediately so users still see the final state without delay.

Related

Fix proposed in #22843 (closed per contribution policy).

Metadata

Metadata

Assignees

Labels

area/coreIssues related to User Interface, OS Support, Core Functionalityeffort/medium2-3 days: UI state, async flow, cross-component refactorshelp wantedWe will accept PRs from all issues marked as "help wanted". Thanks for your support!kind/bugpriority/p2Important but can be addressed in a future release.status/bot-triagedtype/bug

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions