Skip to content

Commit 9831b39

Browse files
only21milclaude
andcommitted
refactor(opencode): drop a no-op Effect.interruptible from the session delete finalizer
It was copied from the abort handler. Effect.timeout already races the delete on an interruptible fiber, so the 5 s limit holds without it, and the OpenCode 2 finalizer has none. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 2265123 commit 9831b39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/provider-opencode/src/server/textGeneration.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export const makeOpenCodeTextGeneration = Effect.fn("makeOpenCodeTextGeneration"
214214
yield* Effect.addFinalizer(() =>
215215
OpenCodeRuntime.runOpenCodeSdk("session.delete", (signal) =>
216216
client.session.delete({ sessionID: session.data.id }, { signal }),
217-
).pipe(Effect.interruptible, Effect.timeout("5 seconds"), Effect.ignore({ log: "Warn" })),
217+
).pipe(Effect.timeout("5 seconds"), Effect.ignore({ log: "Warn" })),
218218
);
219219
const selectedAgent = getModelSelectionStringOptionValue(input.modelSelection, "agent");
220220
const selectedVariant = getModelSelectionStringOptionValue(input.modelSelection, "variant");

0 commit comments

Comments
 (0)