mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 03:56:55 +03:00
chore: generate
This commit is contained in:
@@ -215,11 +215,9 @@ describe("SessionExecution lifecycle", () => {
|
||||
const failures: SessionEvent.Execution.Failed[] = []
|
||||
const scope = yield* Scope.make()
|
||||
yield* Effect.addFinalizer(() => Scope.close(scope, Exit.void))
|
||||
const context = yield* buildExecution(
|
||||
scope,
|
||||
({ sessionID: id }) => Effect.sync(() => void drained.push(id)),
|
||||
{ maxAttempts: 2 },
|
||||
)
|
||||
const context = yield* buildExecution(scope, ({ sessionID: id }) => Effect.sync(() => void drained.push(id)), {
|
||||
maxAttempts: 2,
|
||||
})
|
||||
const restart = Context.get(context, SessionRestart.Service)
|
||||
yield* bus.project(SessionEvent.Execution.Failed, (event) => Effect.sync(() => void failures.push(event)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user