mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-15 11:13:29 +00:00
chore: generate
This commit is contained in:
parent
f6aa1a67f0
commit
fc5c781085
3 changed files with 14 additions and 9 deletions
|
|
@ -346,9 +346,7 @@ function attempts(database: Database.Service["Service"], sessionID: Session.ID)
|
|||
/** Builds the local execution layer plus the restart actions against the test harness services. */
|
||||
function buildExecution(
|
||||
scope: Scope.Closeable,
|
||||
drain: (
|
||||
input: Parameters<SessionRunner.Interface["drain"]>[0],
|
||||
) => Effect.Effect<void, SessionRunner.RunError>,
|
||||
drain: (input: Parameters<SessionRunner.Interface["drain"]>[0]) => Effect.Effect<void, SessionRunner.RunError>,
|
||||
options?: SessionRestart.Options,
|
||||
) {
|
||||
return Effect.gen(function* () {
|
||||
|
|
|
|||
|
|
@ -392,11 +392,13 @@ const execution = Layer.effect(
|
|||
force: boolean,
|
||||
continuation?: SessionRunner.Continuation,
|
||||
): Effect.Effect<void, SessionRunner.RunError> {
|
||||
return sessionRunner.drain({ sessionID, force, continuation }).pipe(
|
||||
Effect.flatMap((result) =>
|
||||
result.type === "complete" ? Effect.void : drain(sessionID, false, result.continuation),
|
||||
),
|
||||
)
|
||||
return sessionRunner
|
||||
.drain({ sessionID, force, continuation })
|
||||
.pipe(
|
||||
Effect.flatMap((result) =>
|
||||
result.type === "complete" ? Effect.void : drain(sessionID, false, result.continuation),
|
||||
),
|
||||
)
|
||||
}
|
||||
const coordinator = yield* SessionRunCoordinator.make<Session.ID, SessionRunner.RunError>({
|
||||
drain: (sessionID, force) => drain(sessionID, force),
|
||||
|
|
|
|||
|
|
@ -216,7 +216,12 @@ test("passes the row foreground color to gutters", async () => {
|
|||
expect(selected).not.toEqual(idle)
|
||||
|
||||
select.app.mockInput.pressArrow("down")
|
||||
await select.app.waitFor(() => colors.get("alpha")!.toInts().every((value, index) => value === idle[index]))
|
||||
await select.app.waitFor(() =>
|
||||
colors
|
||||
.get("alpha")!
|
||||
.toInts()
|
||||
.every((value, index) => value === idle[index]),
|
||||
)
|
||||
expect(colors.get("beta")!.toInts()).toEqual(selected)
|
||||
} finally {
|
||||
select.app.renderer.destroy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue