We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a509d6 commit 1eacc3cCopy full SHA for 1eacc3c
1 file changed
packages/opencode/specs/effect-migration.md
@@ -355,14 +355,14 @@ Route handlers should wrap their entire body in a single `AppRuntime.runPromise(
355
356
```ts
357
// Before — one facade call per service
358
-async (c) => {
+;async (c) => {
359
await SessionRunState.assertNotBusy(id)
360
await Session.removeMessage({ sessionID: id, messageID })
361
return c.json(true)
362
}
363
364
// After — one Effect.gen, yield services from context
365
366
await AppRuntime.runPromise(
367
Effect.gen(function* () {
368
const state = yield* SessionRunState.Service
0 commit comments