fix(patch): cherry-pick 1b69637 to release/v0.33.0-preview.13-pr-21467 [CONFLICTS]#21930
Conversation
…21467) Co-authored-by: Abhi <abhipatel@google.com> Co-authored-by: Adam Weidman <adamfweidman@google.com> # Conflicts: # packages/a2a-server/src/config/config.ts
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 backports a significant architectural change, transitioning the agent's tool scheduling from a traditional callback model to a more robust event-driven system. This refactoring aims to improve the responsiveness and reliability of tool execution, especially in scenarios involving user confirmations and parallel operations. The update also includes refinements to task lifecycle management and policy enforcement in 'YOLO' mode. Due to the nature of the backport, merge conflicts were encountered and require manual resolution. Highlights
Changelog
Activity
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
|
|
Size Change: +266 B (0%) Total Size: 25.9 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Code Review
This pull request cherry-picks a significant feature: the transition from a callback-based tool scheduler to an event-driven one. The changes are extensive, touching the core task execution logic in Task and CoderAgentExecutor, and introducing new tests for the event-driven flow. The refactoring appears well-executed, improving robustness in handling concurrent requests and resource management.
However, there is a critical issue: an unresolved merge conflict remains in packages/a2a-server/src/config/config.ts. This will prevent the code from compiling and must be resolved before merging.
Note: Security Review did not run due to the size of the PR.
I am having trouble creating individual review comments. Click here to see my feedback.
packages/a2a-server/src/config/config.ts (106-114)
This file contains unresolved merge conflict markers (<<<<<<<, =======, >>>>>>>). These must be resolved before merging, as they will cause compilation errors.
It appears the intention was to use the logic from the incoming change. However, the function isHeadlessMode() is not defined or imported in this file, which will likely cause a reference error. Please resolve the conflict and ensure isHeadlessMode() is properly defined or imported.
enableEventDrivenScheduler:
settings.experimental?.enableEventDrivenScheduler ?? true,
interactive: !isHeadlessMode(),
enableInteractiveShell: !isHeadlessMode(),
This PR automatically cherry-picks commit 1b69637 to patch version v0.33.0-preview.13 in the preview release to create version 0.33.0-preview.14.
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: