Repository navigation
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
Thanks for the fix — the One issue with the PR as submitted: the branch is stacked on 6 earlier commits (for #8074, #8072, #8059, #8081, #8056 x2, #8141) that touch 13 other files unrelated to #8138. Those are already tracked separately — some in your own PRs (#8110 for #8081, #8179 for #8141), some in other contributors' open PRs (#8165, #8062, #8058), and some you've already closed as superseded (#8078, #8108, #8109, #8111). Merging this PR as-is would re-land that work a second time and could conflict with those other PRs. I confirmed the only commit unique to this PR versus its immediate parent (#8179) is the stream.ts one — that's the actual content of #8138's fix. For the merge, we'll rebase this PR down to just that single commit (stream.ts + the new test) on top of the release branch — no action needed from you there. Two small things worth a follow-up on your side if you want:
Nothing here blocks the fix itself, just the branch hygiene before it lands. |
810dfd0 to
7441966
Compare
a676b20 to
a60dbcd
Compare
…lowing 4 empty catch blocks around onComplete/onFailure callbacks silently swallowed errors, making stream completion/failure issues invisible to operators. Replaced with console.debug logging. Fixes cheaper-inference#8138
a60dbcd to
84c3aab
Compare
|
Thanks, @rafaumeu — closing this as subsumed. #8143 (merged 2026-07-23) already logs the exact same 4 onComplete/onFailure callback catch blocks in stream.ts, and its version includes the model context in the message, so the production change here is fully covered. Really appreciate the fix — the same intent landed via #8143. If you spot a callback catch that #8143 missed, a focused follow-up is very welcome. 🙏 |
Summary
4 empty
catch {}blocks aroundonCompleteandonFailurecallbacks instream.tssilently swallowed errors. When callbacks threw, the errors were invisible — stream completion/failure issues were impossible to debug.Fix
Replaced all 4 empty catches with
catch (streamCbErr)that logs viaconsole.debugwith context (callback name + error).Affected callbacks:
Test
tests/unit/stream-silent-catch-8138.test.ts— verifies 4catch(streamCbErr)blocks exist with proper logging.Fixes #8138