Selaa lähdekoodia

fix(tui): bootstrap new project copies (#31019)

James Long 3 kuukautta sitten
vanhempi
commit
499a8a4b0c
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      packages/opencode/src/cli/cmd/tui/component/prompt/move.tsx

+ 5 - 0
packages/opencode/src/cli/cmd/tui/component/prompt/move.tsx

@@ -37,6 +37,11 @@ export function usePromptMove(input: { projectID: () => string | undefined; sess
       )
       const directory = result.data?.directory
       if (!directory) throw new Error("No project copy directory returned")
+
+      // Call a location-based route to make sure it's bootstrapped
+      // before moving on
+      await sdk.client.path.get({ directory }, { throwOnError: true })
+
       setProgress("Creating session")
       return directory
     } catch (err) {