Repository navigation
fix: resolve right sidebar freeze on Windows - #598
Merged
Merged
Conversation
Three changes that together eliminate the multi-second UI freeze reported when opening the right sidebar on Windows: 1. Debounce terminal refit (150 ms trailing-edge) so the expensive synchronous xterm scrollback reflow runs once after layout settles instead of immediately on each ResizeObserver frame. 2. Parallelize auth cache rebuild — process all repos concurrently via Promise.all instead of sequentially, cutting wall-clock time from sum-of-repos to slowest-single-repo. 3. Suppress CSS width transition on sidebar mount to prevent Chromium from animating auto→320 px, which would trigger intermediate terminal resizes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When switching worktrees, all PTY output accumulated while the terminal was in the background was written in one synchronous terminal.write() call. With a Claude agent running for minutes, this buffer can reach hundreds of KB, blocking the renderer for 2–5 s on Windows. Two changes: 1. Drain pending buffers in 32 KB chunks with setTimeout(0) yields between chunks so the browser can paint frames and process input events during the catch-up. 2. Cap the pending buffer at 512 KB (trimming oldest output) to bound memory usage for long-running background agents. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The @parcel/watcher error callback can fire before subscribe() resolves and assigns root.subscription. On Windows this crashes the main process with "Cannot read properties of null".
1. Pending buffer cap now snaps the cut point forward to the next newline (within 256 chars) so the trim doesn't bisect an ANSI escape sequence, which would garble terminal output on flush. 2. Watcher error callback can fire before subscribe() resolves. Track this with an errorCleanedUp flag and immediately unsubscribe the orphaned subscription to prevent leaking a native file-watcher handle. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
brennanb2025
added a commit
that referenced
this pull request
Apr 19, 2026
Adds Playwright coverage for two high-regression areas identified from the last 200 PRs: - worktree-lifecycle.spec.ts: guards removeWorktree cleanup (#532), worktree switch with right sidebar open (#598/#628/#726), and cross-worktree tab isolation (#542/#554). - tab-close-navigation.spec.ts: guards visual-neighbor activation on editor/diff close (#693) and Landing fallback when the last visible surface closes (#677).
3 tasks done
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #512
Summary
use-terminal-pane-global-effects.ts. The synchronous xterm scrollback reflow (fitAddon.fit()→terminal.resize()) blocks the renderer for 500ms–2s on Windows with large scrollback buffers; deferring it 150ms lets the layout settle first so the reflow runs once instead of per-frame.rebuildAuthorizedRootsCachenow runsgit worktree list+realpath()for all repos concurrently viaPromise.allinstead of sequentially. With 3 repos on Windows, this cuts wall-clock time from ~2–3s to ~500ms–1s.isMountingguard that appliestransition-noneon the sidebar's first render, preventing Chromium from animating width fromauto→320pxand triggering intermediate terminal resizes.Test plan
🤖 Generated with Claude Code