mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 03:18:31 +00:00
fix(tui): bootstrap new project copies (#31019)
This commit is contained in:
parent
969bb90f69
commit
499a8a4b0c
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue