Uh oh!
There was an error while loading. Please reload this page.
Python: Surface A2A preview consent URLs - #7606
Conversation
There was a problem hiding this comment.
Pull request overview
Extends Foundry Hosting consent extraction to support Work IQ A2A-preview sources while preserving MCP behavior.
Changes:
- Allows
mcpanda2a_previewconsent sources. - Adds an A2A-preview parser regression test.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
_responses.py | Expands the consent source allowlist. |
test_responses.py | Adds configurable test data and A2A-preview coverage. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Python Test Coverage Report •
Python Unit Test Overview
| ||||||||||||||||||||||||||||||
Giles Odigwe (giles17)
commented
Aug 13, 2026
LeoZhaoo (@LobsterQBA) please agree to the Contributor License Agreement above |
LeoZhaoo (LobsterQBA)
commented
Aug 16, 2026
@microsoft-github-policy-service agree |
LeoZhaoo (LobsterQBA)
commented
Aug 16, 2026
@microsoft-github-policy-service agree |
Tao Chen (TaoChenOSU)
commented
Aug 17, 2026
Thanks LeoZhaoo (@LobsterQBA) |
Motivation & Context
When a Work IQ tool source returns
CONSENT_REQUIREDwithtype: "a2a_preview", the Foundry Hosting responses server currently ignores the consent URL because it only acceptsmcpsources. This leaves callers without the URL needed to complete consent.Description & Review Guide
consent_url_from_errorto recognize bothmcpanda2a_previewconsent sources, and add a regression test for the latter.Prepared with AI assistance; the change was reviewed and validated locally by the contributor.
Related Issue
Fixes#7227
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.