Skip to content

Commit 1071aca

Browse files
authored
fix: miscellaneous small fixes (#18328)
1 parent b3d0446 commit 1071aca

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/opencode/src/server/routes/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const ProjectRoutes = lazy(() =>
2929
},
3030
}),
3131
async (c) => {
32-
const projects = await Project.list()
32+
const projects = Project.list()
3333
return c.json(projects)
3434
},
3535
)

packages/opencode/src/session/message-v2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { STATUS_CODES } from "http"
1313
import { Storage } from "@/storage/storage"
1414
import { ProviderError } from "@/provider/error"
1515
import { iife } from "@/util/iife"
16-
import { type SystemError } from "bun"
16+
import type { SystemError } from "bun"
1717
import type { Provider } from "@/provider/provider"
1818
import { ModelID, ProviderID } from "@/provider/schema"
1919

packages/opencode/src/tool/registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export namespace ToolRegistry {
4646
if (matches.length) await Config.waitForDependencies()
4747
for (const match of matches) {
4848
const namespace = path.basename(match, path.extname(match))
49-
const mod = await import(pathToFileURL(match).href)
49+
const mod = await import(process.platform === "win32" ? match : pathToFileURL(match).href)
5050
for (const [id, def] of Object.entries<ToolDefinition>(mod)) {
5151
custom.push(fromPlugin(id === "default" ? namespace : `${namespace}_${id}`, def))
5252
}

packages/opencode/src/util/process.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ export namespace Process {
6161

6262
const proc = launch(cmd[0], cmd.slice(1), {
6363
cwd: opts.cwd,
64+
shell: opts.shell,
6465
env: opts.env === null ? {} : opts.env ? { ...process.env, ...opts.env } : undefined,
6566
stdio: [opts.stdin ?? "ignore", opts.stdout ?? "ignore", opts.stderr ?? "ignore"],
66-
shell: opts.shell,
6767
windowsHide: process.platform === "win32",
6868
})
6969

0 commit comments

Comments
 (0)