Skip to content

Commit 5a9f4e5

Browse files
authored
fix: ensure checkUpgrade sets init: (sst#5040)
1 parent d0a48a0 commit 5a9f4e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/opencode/src/cli/cmd/tui/worker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Installation } from "@/installation"
22
import { Server } from "@/server/server"
33
import { Log } from "@/util/log"
44
import { Instance } from "@/project/instance"
5+
import { InstanceBootstrap } from "@/project/bootstrap"
56
import { Rpc } from "@/util/rpc"
67
import { upgrade } from "@/cli/upgrade"
78

@@ -43,6 +44,7 @@ export const rpc = {
4344
async checkUpgrade(input: { directory: string }) {
4445
await Instance.provide({
4546
directory: input.directory,
47+
init: InstanceBootstrap,
4648
fn: async () => {
4749
await upgrade().catch(() => {})
4850
},

0 commit comments

Comments
 (0)