From e555a2a79f1ee9f4c574af6f6eb046c63282af70 Mon Sep 17 00:00:00 2001 From: Guilhem Lemouel Date: Tue, 27 Oct 2026 02:28:14 -0700 Subject: [PATCH] fix: stop preview input from the move's first step The editors stay mounted while the move drains them, and a keystroke typed during that drain was lost when they closed, or left in the parent of an existing fork. The preview tabs are inert from the move's first step, so nothing new reaches an editor after the drain starts. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../lib/components/sessions/PreviewTabHost.svelte | 6 ++++++ .../sessions/sessionPermissions.svelte.ts | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/sessions/PreviewTabHost.svelte b/frontend/src/lib/components/sessions/PreviewTabHost.svelte index fcd1aeeed2..fdb0ca5731 100644 --- a/frontend/src/lib/components/sessions/PreviewTabHost.svelte +++ b/frontend/src/lib/components/sessions/PreviewTabHost.svelte @@ -334,6 +334,7 @@ bind:this={overlayHostEl} class="absolute inset-0 flex flex-col min-h-0 bg-surface {visibility}" aria-hidden={!active} + inert={permissions.moveStarted} > @@ -455,6 +457,7 @@ bind:this={overlayHostEl} class="absolute inset-0 flex flex-col min-h-0 bg-surface {visibility}" aria-hidden={!active} + inert={permissions.moveStarted} > {#if overlayHostEl} {#await import('./PageListView.svelte')} @@ -476,6 +479,7 @@ bind:this={overlayHostEl} class="absolute inset-0 flex flex-col min-h-0 bg-surface {visibility}" aria-hidden={!active} + inert={permissions.moveStarted} > {#if overlayHostEl} {#await import('./RunViewerView.svelte')} @@ -499,6 +503,7 @@ bind:this={overlayHostEl} class="absolute inset-0 flex flex-col min-h-0 bg-surface {visibility}" aria-hidden={!active} + inert={permissions.moveStarted} > {#if artifact && runtime}