fix(core): omit unavailable host tools

This commit is contained in:
Kit Langton 2026-06-05 19:37:29 -04:00
commit 7d79daa2ca
13 changed files with 179 additions and 86 deletions

View file

@ -25,7 +25,7 @@ import { SessionStore } from "@opencode-ai/core/session/store"
const routedSessions = SessionV2.layer.pipe(
Layer.provide(SessionProjector.layer),
Layer.provide(SessionExecutionLocal.layer),
Layer.provide(LocationServiceMap.layer),
Layer.provide(LocationServiceMap.defaultLayer),
Layer.provide(SessionStore.layer),
Layer.provide(EventV2.layer),
Layer.provide(Database.defaultLayer),
@ -51,7 +51,7 @@ export const v2Handlers = Layer.mergeAll(
sessionQuestionHandlers,
).pipe(
Layer.provide(v2LocationLayer),
Layer.provide(LocationServiceMap.layer),
Layer.provide(LocationServiceMap.defaultLayer),
Layer.provide(PermissionSaved.layer),
Layer.provide(routedSessions),
)

View file

@ -22,7 +22,7 @@ export function createRoutes(password?: string) {
? ServerAuth.Config.layer({ username: "opencode", password: Option.some(password) })
: ServerAuth.Config.defaultLayer,
),
Layer.provide(LocationServiceMap.layer),
Layer.provide(LocationServiceMap.defaultLayer),
Layer.provide(PermissionSaved.layer),
Layer.provide(SessionV2.defaultLayer),
Layer.provide(Database.defaultLayer),