fix(agent-manager): improve inspector resize performance - #12948
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge lgtm. The resize throttle in Files Reviewed (4 files)
Reviewed by kimi-k3 · Input: 57.8K · Output: 11.4K · Cached: 405.5K Review guidance: REVIEW.md from base branch |
…-resize-performance fix(agent-manager): improve inspector resize performance
Problem
Resizing the Agent Manager inspector repeatedly committed layout changes while the diff viewer and mounted xterm instances reflowed. Large diffs and terminal scrollback could produce visible stalls during a drag.
Change
Measured Improvement
Measured with the VS Code self-test profiler using the same 1.46-second divider drag, 90 synthetic pointer updates, and the same Agent Manager webview scenario. Diff and terminal runs were captured separately. The terminal scenario used 5,000 lines of scrollback.
Inline Diff Resize
Inline Terminal Resize
The terminal after-run longest task remained below 10 ms. The one-time post-build capture was discarded from the comparison because it included an unrelated outer VS Code terminal-panel height transition.
User-visible Result