Skip to content

Commit d985eb8

Browse files
authored
fix(streaming): stop reporting retryable ClosedSendChannelException to Bugsnag (#978)
The initial-request send in openBidirectionalStream already treats ClosedSendChannelException as retryable, but the trace() call was passing `error = e` which routed through ErrorUtils → Bugsnag.notify(). Inline the message instead so the retry path no longer produces false-positive Bugsnag warnings. Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 9bdfcc1 commit d985eb8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • services/opencode/src/main/kotlin/com/getcode/opencode/internal/bidi

services/opencode/src/main/kotlin/com/getcode/opencode/internal/bidi/OpenStream.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,8 @@ fun <Request, Response, StreamRef> openBidirectionalStream(
124124
} catch (e: Exception) {
125125
trace(
126126
tag = tag,
127-
message = "Failed to send initial request",
127+
message = "Failed to send initial request: ${e.message}",
128128
type = TraceType.Error,
129-
error = e
130129
)
131130
collectionJob.cancel()
132131
requestChannel.close()

0 commit comments

Comments
 (0)