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

This commit is contained in:
James Long 2026-06-05 17:10:14 -04:00 committed by GitHub
parent 969bb90f69
commit 499a8a4b0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {