mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-12 19:53:27 +00:00
chore: generate
This commit is contained in:
parent
1a509d62a0
commit
1eacc3c339
1 changed files with 2 additions and 2 deletions
|
|
@ -355,14 +355,14 @@ Route handlers should wrap their entire body in a single `AppRuntime.runPromise(
|
|||
|
||||
```ts
|
||||
// Before — one facade call per service
|
||||
async (c) => {
|
||||
;async (c) => {
|
||||
await SessionRunState.assertNotBusy(id)
|
||||
await Session.removeMessage({ sessionID: id, messageID })
|
||||
return c.json(true)
|
||||
}
|
||||
|
||||
// After — one Effect.gen, yield services from context
|
||||
async (c) => {
|
||||
;async (c) => {
|
||||
await AppRuntime.runPromise(
|
||||
Effect.gen(function* () {
|
||||
const state = yield* SessionRunState.Service
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue