fix(patch): cherry-pick f47d6c6 to release/v0.54.0-preview.0-pr-28566 to patch version v0.54.0-preview.0 and create version 0.54.0-preview.1 - #28609
Conversation
…c empty response guidance (#28566) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
📊 PR Size: size/XL
|
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces comprehensive improvements to how the CLI handles stream errors and model-side failures. By categorizing and explicitly handling various InvalidStream scenarios—such as safety blocks, token limit exhaustion, and empty responses—the system now provides clearer feedback and maintains better state consistency. Additionally, the PR includes telemetry updates for tracking these errors and refined prompt instructions to guide the model toward more reliable tool usage and response generation. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
|
Size Change: +14.3 kB (+0.04%) Total Size: 35.2 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Code Review
This pull request enhances the CLI and core packages with robust handling of invalid stream events, context-aware retries with on-retry nudging, and rollback mechanisms to revert un-responded user turns upon stream failures or aborts. It also updates prompt guidelines, scheduler cancellation behavior, and telemetry tracking. Feedback highlights three critical issues: a potential TypeError when accessing toolCall.response.responseParts on cancelled tool calls, the need to support Content objects in the systemInstruction retry nudge logic, and the necessity of cancelling and finalizing all active non-terminal calls in the scheduler when aborted.
|
✅ 70 tests passed successfully on gemini-3-flash-preview. 🧠 Model Steering GuidanceThis PR modifies files that affect the model's behavior (prompts, tools, or instructions).
This is an automated guidance message triggered by steering logic signatures. |
d3c51f1
into
release/v0.54.0-preview.0-pr-28566
This PR automatically cherry-picks commit f47d6c6 to patch version v0.54.0-preview.0 in the preview release to create version 0.54.0-preview.1.