Skip to content

Commit e9ef258

Browse files
docs(server): note what an OpenCode 2 continuation drops when it skips earlier replies
A continuation drops every reply held before its own, so cancelled continuations never pin the session. A continuation the user reordered ahead of an earlier one drops that one's reply too; the comment says so. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent b7f139d commit e9ef258

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/server/src/orchestration-v2/Adapters/OpenCode2AdapterV2.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3404,6 +3404,8 @@ export const make = Effect.fn("OpenCode2Adapter.make")(function* (instanceId: Pr
34043404
(held) => held.messageId === turnInput.message.messageId,
34053405
);
34063406
if (index < 0) return yield* finishTurn(state, { status: "completed" });
3407+
// Trade-off: a continuation the user reordered ahead of an earlier one
3408+
// drops that one's reply too, so cancelled ones never pin the session.
34073409
for (const skipped of state.wakes.splice(0, index)) skipped.dropped = true;
34083410
const wake = state.wakes.shift()!;
34093411
const turn = state.active;

0 commit comments

Comments
 (0)