fix: disable moving a session again while a move runs

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Guilhem Lemouel
2026-10-26 09:49:37 -07:00
co-authored by Claude Opus 5.5
parent 315bf9ce15
commit 325b0d178c
@@ -467,7 +467,7 @@
async function startMove(target: MoveTarget) {
const parent = actingWorkspaceId
if (!session || !parent || !canMoveToFork) return
if (!session || !parent || !canMoveToFork || moving) return
if (target.kind === 'existing' && target.id === parent) return
const listed = await listMoveItems(parent, target)
if (typeof listed === 'string') {
@@ -685,7 +685,7 @@
icon: GitFork,
// Before the first message, the "Run in" picker sets the workspace instead.
hide: !hasFirstUserMessage || isUnavailable || session.archived,
disabled: !canMoveToFork,
disabled: !canMoveToFork || moving,
action: () => (movePickerOpen = true)
},
...(session.archived