Skip to content

Conversation

@allen-stephen
Copy link
Collaborator

Summary

  • Fixes is_adk derivation to use base_template_name instead of tags, enabling remote templates using adk_a2a_base to correctly inject app object when needed
  • Adds unit and integration tests for ADK app injection
  • Fixes hardcoded agent name assertion in A2A template tests

Closes #450

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @allen-stephen, 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 addresses a critical issue where remote ADK templates, especially those based on adk_a2a_base, failed to correctly inject the app object due to an incorrect derivation of the is_adk flag. The fix involves updating the is_adk check to rely on the base_template_name rather than potentially missing tags. This ensures proper functionality for these templates and is backed by comprehensive new tests to validate the app injection mechanism.

Highlights

  • ADK App Object Injection Fix: Corrected the logic for deriving is_adk to use base_template_name instead of tags. This ensures that remote templates, particularly those using adk_a2a_base, properly inject the necessary app object.
  • Enhanced Test Coverage: Added new unit and integration tests specifically for ADK app injection scenarios, covering cases where the app object should or should not be injected, and verifying the is_adk derivation logic.
  • Flexible Agent Name Assertion: Updated a hardcoded agent name assertion in A2A template tests to be more flexible, checking for the presence of a name rather than a specific string.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This is a solid pull request that effectively addresses the issue with remote A2A templates by correctly deriving the is_adk flag from base_template_name. The core logic change is clean and well-supported by a comprehensive set of new tests, including unit tests for the specific logic, behavior tests for app injection, and a new integration test for the end-to-end flow. These tests significantly improve confidence in the fix. I have one suggestion to make the new integration test assertion more robust.

allen-stephen and others added 3 commits January 8, 2026 12:40
@eliasecchig eliasecchig force-pushed the fix/a2a-support-remote-templating branch from d1a5796 to 184989a Compare January 8, 2026 11:41
@eliasecchig eliasecchig merged commit e8a7e5c into main Jan 8, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: support A2A root agents remote templating / enhance command

2 participants