mirror of
https://github.com/stablyai/orca.git
synced 2026-09-24 00:02:24 +00:00
fix(renderer): release scroll intents on worktree removal
This commit is contained in:
@@ -225,6 +225,11 @@ export function pruneParkedTerminalWatchers(liveWorktreeIds: ReadonlySet<string>
|
||||
}
|
||||
for (const [tabId, capture] of capturedPanesByTabId) {
|
||||
if (!liveWorktreeIds.has(capture.worktreeId)) {
|
||||
for (const pane of capture.panes) {
|
||||
// Worktree removal can bypass closeTab while panes are parked; release
|
||||
// the same strong scroll-intent keys as explicit tab retirement.
|
||||
releaseTerminalScrollIntentKey(pane.leafId)
|
||||
}
|
||||
capturedPanesByTabId.delete(tabId)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user