fix: fold terminal pane frame cleanup into unmount effect (#3476)

This commit is contained in:
Neil
2026-05-29 22:34:46 -07:00
committed by GitHub
parent 4f682631ad
commit d6abeb0c0c
@@ -902,13 +902,10 @@ export default function TerminalPane({
const snapshots = activityIsolationSnapshotRef.current
return () => {
restoreExpandedLayoutFrom(snapshots)
cancelPendingPaneSizeRefreshFrames({ pendingPaneSizeRefreshFrameIdsRef })
}
}, [])
useEffect(() => {
return () => cancelPendingPaneSizeRefreshFrames({ pendingPaneSizeRefreshFrameIdsRef })
}, [])
const handleRestartCodexPane = useCallback(
(paneId: number) => {
const manager = managerRef.current