mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 14:22:27 +00:00
initialize config in worktree
This commit is contained in:
@@ -7,6 +7,7 @@ import { Global } from "../global"
|
||||
import { Instance } from "../project/instance"
|
||||
import { Project } from "../project/project"
|
||||
import { fn } from "../util/fn"
|
||||
import { Config } from "@/config/config"
|
||||
|
||||
export namespace Worktree {
|
||||
export const Info = z
|
||||
@@ -211,6 +212,11 @@ export namespace Worktree {
|
||||
throw new StartCommandFailedError({ message: errorText(ran) || "Worktree start command failed" })
|
||||
}
|
||||
|
||||
const opencodeDir = path.join(info.directory, ".opencode")
|
||||
if (await Bun.file(opencodeDir).exists()) {
|
||||
await Config.installDependencies(info.directory)
|
||||
}
|
||||
|
||||
return info
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user