File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/opencode/src/cli/cmd/tui Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { UI } from "@/cli/ui"
88import { Log } from "@/util"
99import { errorMessage } from "@/util/error"
1010import { withTimeout } from "@/util/timeout"
11+ import { Instance } from "@/project/instance"
1112import { withNetworkOptions , resolveNetworkOptionsNoConfig } from "@/cli/network"
1213import { Filesystem } from "@/util"
1314import type { GlobalEvent } from "@opencode-ai/sdk/v2"
@@ -178,7 +179,11 @@ export const TuiThreadCommand = cmd({
178179 const prompt = await input ( args . prompt )
179180 const config = await TuiConfig . get ( )
180181
181- const network = resolveNetworkOptionsNoConfig ( args )
182+ const network = await Instance . provide ( {
183+ directory : cwd ,
184+ fn : ( ) => resolveNetworkOptionsNoConfig ( args ) ,
185+ } )
186+
182187 const external =
183188 process . argv . includes ( "--port" ) ||
184189 process . argv . includes ( "--hostname" ) ||
You can’t perform that action at this time.
0 commit comments