You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Root-Cause Remediation for Local Terminal clear Command Hangs & Sluggish History Restore:
Eliminated the severe 1–2 second main-thread freeze when executing clear or pressing Return in local terminal tabs: replaced synchronous whole-system sysctl(KERN_PROC_ALL) process walks in LocalTerminalStatusBar with an asynchronous, throttled background query service (LocalProcessMonitor), dropping main-thread query latency from over 1,500ms to 0ms.
Eliminated dual-shell spawning overhead and double ~/.zshrc profile loading during local session restoration: replaced the multi-stage temporary shell script with an atomic inline bootstrap pipeline (/bin/sh -c "cat ...; rm ...; exec <shell> -l"), making terminal history restoration instantaneous.
Capped session restore replay buffer to the most recent 250 lines to prevent PTY queue saturation and window re-flow congestion.
Fixed persistent scrollback snowballing and desync: .commandFinished terminal events now immediately detect screen clear states and purge stale on-disk session history, ensuring cleared terminals stay clean across app restarts.
Added a 3-second debounce to session history persistence to prevent redundant disk I/O on UI focus changes.