This commit is contained in:
James Long 2026-06-11 10:06:41 -04:00
commit 78b7781ab9
18 changed files with 478 additions and 128 deletions

View file

@ -1,6 +1,4 @@
import { createEffect, createMemo, createSignal, onCleanup } from "solid-js"
import path from "path"
import { useTuiPaths } from "../../context/runtime"
import { errorMessage } from "../../util/error"
import { useDialog } from "../../ui/dialog"
import { useSDK } from "../../context/sdk"
@ -20,7 +18,6 @@ export function usePromptMove(input: { projectID: () => string | undefined; sess
const sync = useSync()
const toast = useToast()
const homeDestination = useHomeSessionDestination()
const paths = useTuiPaths()
const [creating, setCreating] = createSignal(false)
const [creatingDots, setCreatingDots] = createSignal(3)
const [progress, setProgress] = createSignal<string>()
@ -34,8 +31,6 @@ export function usePromptMove(input: { projectID: () => string | undefined; sess
const result = await sdk.client.experimental.projectCopy.create(
{
projectID,
strategy: "git_worktree",
directory: path.join(paths.worktree, projectID.slice(0, 6)),
context,
},
{ throwOnError: true },