fix(auth): use branch-scoped events for auth responses#5982
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Response from ADK Triaging Agent Hello @gezw, thank you for submitting this pull request! Before we can review and merge your contribution, please make sure to address the following items from our contribution guidelines:
Thank you for your help in making ADK better! |
|
Hi @gezw , Thank you for your contribution! It appears you haven't yet signed the Contributor License Agreement (CLA). Please visit https://cla.developers.google.com/ to complete the signing process. Once the CLA is signed, we'll be able to proceed with the review of your PR. Thank you! |
|
@googlebot rescan |
2a7f7f8 to
1559690
Compare
🔍 ADK Pull Request Analysis: PR #5982Title: fix(auth): use branch-scoped events for auth responses Executive Summary
Detailed Findings & Analysis1. Objectives & Impact ("What does it do?")
2. Justification & Value ("Is it a valid and useful change?")
3. Principle & Style Alignment Checklist ("Does it follow rules?")
Summary of Completed Tasks
|
Summary
Details
The auth preprocessor already consumes prior session events to decide whether an auth response should be applied to the next LLM request. This change makes that lookup use
InvocationContext._get_events(current_branch=True)instead of reading the full session event list directly, so auth handling follows the same branch visibility semantics used by the rest of the invocation context.Validation
uv run --extra test pytest -q tests/unittests/auth/test_auth_preprocessor.pyuv run --extra dev pyink --check src/google/adk/auth/auth_preprocessor.py tests/unittests/auth/test_auth_preprocessor.pyuv run --extra test python -m py_compile src/google/adk/auth/auth_preprocessor.py tests/unittests/auth/test_auth_preprocessor.pygit diff --check