|
|
@@ -843,9 +843,7 @@ export const RunCommand = effectCmd({
|
|
|
const headers = new Headers(request.headers)
|
|
|
const auth = ServerAuth.header()
|
|
|
if (auth) headers.set("Authorization", auth)
|
|
|
- return Server.Default().app.fetch(
|
|
|
- new Request(request, { headers }),
|
|
|
- )
|
|
|
+ return Server.Default().app.fetch(new Request(request, { headers }))
|
|
|
}) as typeof globalThis.fetch
|
|
|
|
|
|
try {
|
|
|
@@ -883,9 +881,7 @@ export const RunCommand = effectCmd({
|
|
|
const headers = new Headers(request.headers)
|
|
|
const auth = ServerAuth.header()
|
|
|
if (auth) headers.set("Authorization", auth)
|
|
|
- return Server.Default().app.fetch(
|
|
|
- new Request(request, { headers }),
|
|
|
- )
|
|
|
+ return Server.Default().app.fetch(new Request(request, { headers }))
|
|
|
}) as typeof globalThis.fetch
|
|
|
const sdk = createOpencodeClient({
|
|
|
baseUrl: "http://opencode.internal",
|