refactor(opencode): roll out serviceUse proxy across 14 services + tests (#28576)

This commit is contained in:
Kit Langton
2026-05-21 03:36:27 +00:00
committed by GitHub
parent 69eee26f30
commit 39ea816a72
48 changed files with 640 additions and 622 deletions
@@ -35,8 +35,8 @@ function pathFor(template: string, params: Record<string, string>) {
const withSession = (input?: Parameters<Session.Interface["create"]>[0]) =>
Effect.acquireRelease(
Session.Service.use((session) => session.create(input)),
(created) => Session.Service.use((session) => session.remove(created.id)).pipe(Effect.ignore),
Session.use.create(input),
(created) => Session.use.remove(created.id).pipe(Effect.ignore),
)
describe("session diff with missing patch (#26574)", () => {