mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
chore(core): format session schedule service
Prettier wrapped the long catchCause line; no behavior change.
This commit is contained in:
parent
a5ceab882e
commit
e9f17d5ebe
1 changed files with 3 additions and 1 deletions
|
|
@ -46,7 +46,9 @@ const layer = Layer.effect(
|
|||
const exists = yield* sessions.prompt({ sessionID, text: entry.text, delivery: "queue" }).pipe(
|
||||
Effect.as(true),
|
||||
Effect.catchTag("Session.NotFoundError", () => Effect.succeed(false)),
|
||||
Effect.catchCause((cause) => Effect.logWarning("scheduled prompt failed", { sessionID, cause }).pipe(Effect.as(true))),
|
||||
Effect.catchCause((cause) =>
|
||||
Effect.logWarning("scheduled prompt failed", { sessionID, cause }).pipe(Effect.as(true)),
|
||||
),
|
||||
)
|
||||
// A deleted Session ends its schedule instead of retrying forever.
|
||||
if (!exists) return yield* kv.remove(prefix + sessionID)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue