-
Notifications
You must be signed in to change notification settings - Fork 8.7k
fix(patch): cherry-pick 0b6c020 to release/v0.9.0-preview.1-pr-10828 [CONFLICTS] #10920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(patch): cherry-pick 0b6c020 to release/v0.9.0-preview.1-pr-10828 [CONFLICTS] #10920
Conversation
Co-authored-by: Sandy Tao <sandytao520@icloud.com> # Conflicts: # packages/core/src/core/turn.ts
Summary of ChangesHello @gemini-cli-robot, 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 cherry-picks a commit designed to enhance the resilience of the system's interactions with the Gemini API. It introduces a new strategy for handling 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 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 counter productive. 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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request cherry-picks a feature to retry failed API calls. The changes introduce a new configuration option continueOnFailedApiCall
and logic to handle InvalidStream
events. However, there are critical issues with unresolved merge conflicts in packages/core/src/core/turn.ts
that must be fixed. Additionally, a test description in packages/core/src/config/config.test.ts
is incorrect and should be updated to match the code's behavior.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
packages/core/src/core/turn.ts
Outdated
| ServerGeminiUserCancelledEvent | ||
| ServerGeminiRetryEvent; | ||
| ServerGeminiRetryEvent | ||
| ServerGeminiRetryEvent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicated
packages/core/src/core/turn.ts
Outdated
type: GeminiEventType.Retry; | ||
}; | ||
|
||
export type ServerGeminiContextWindowWillOverflowEvent = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this expected to be here?
Size Change: +1.59 kB (+0.01%) Total Size: 17.7 MB
ℹ️ View Unchanged
|
LoopDetected = 'loop_detected', | ||
Citation = 'citation', | ||
Retry = 'retry', | ||
ContextWindowWillOverflow = 'context_window_will_overflow', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not part of the original fix
a07fbbe
into
release/v0.9.0-preview.1-pr-10828
This PR automatically cherry-picks commit 0b6c020 to patch version v0.9.0-preview.1 in the preview release to create version 0.9.0-preview.2.
This cherry-pick resulted in merge conflicts that need manual resolution.
🔧 Next Steps:
📋 Files with conflicts:
The commit has been created with conflict markers for easier manual resolution.
🚨 Important: