fix(server): preserve v1 auth compatibility

This commit is contained in:
Dax Raad 2026-07-20 21:46:23 -04:00
commit fc7e4cf93e
3 changed files with 6 additions and 5 deletions

View file

@ -148,7 +148,7 @@ function dispatch(
application: Ref.Ref<Option.Option<App>>,
shutdown: Deferred.Deferred<void>,
): App {
const auth = ServerAuth.Config.of({ password: Option.some(password) })
const auth = ServerAuth.Config.of({ password: Option.some(password), username: "opencode" })
return Effect.gen(function* () {
const request = yield* HttpServerRequest.HttpServerRequest
const url = new URL(request.url, "http://localhost")