From 75efc9d83325392948763aa2b7a282f3a13e0013 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Sat, 22 Aug 2026 09:07:27 -0400 Subject: [PATCH] fix(tui): seed moved worktree location (#44143) Co-authored-by: jlongster <17031+jlongster@users.noreply.github.com> --- packages/tui/src/component/prompt/move.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/tui/src/component/prompt/move.tsx b/packages/tui/src/component/prompt/move.tsx index 90aa0aae7bc..e1edc39c708 100644 --- a/packages/tui/src/component/prompt/move.tsx +++ b/packages/tui/src/component/prompt/move.tsx @@ -34,8 +34,10 @@ export function usePromptMove(input: { projectID: () => string | undefined; sess const directory = result.directory if (!directory) throw new Error("No worktree directory returned") - // Call a location-based route to initialize it before moving on. - await client.api.location.get({ location: { directory } }) + // Seed the location store before optimistic session creation mounts the + // destination. A raw read initializes the server location but leaves the + // optimistic session without its project until the create request echoes. + await data.location.syncInfo({ directory }) setProgress("Creating session") return directory