Skip to content

Commit 13c0937

Browse files
lsr911claude
andcommitted
fix(opencode-go): treat block-boundary SSE events as liveness for idle timer
- Add text_end, thinking_end, toolcall_start, toolcall_end to isProviderProgressEvent so the idle timeout is reset at block boundaries, preventing premature abort on slow streams Co-Authored-By: Claude <[email protected]> Signed-off-by: lsr911 <[email protected]>
1 parent e4f6357 commit 13c0937

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

extensions/opencode-go/stream-termination.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ function isProviderProgressEvent(event: AssistantMessageEvent): boolean {
5555
return (
5656
event.type === "text_delta" ||
5757
event.type === "thinking_delta" ||
58-
event.type === "toolcall_delta"
58+
event.type === "toolcall_delta" ||
59+
event.type === "text_end" ||
60+
event.type === "thinking_end" ||
61+
event.type === "toolcall_start" ||
62+
event.type === "toolcall_end"
5963
);
6064
}
6165

0 commit comments

Comments
 (0)