Python: fix(orchestrations): preserve multimodal content during agent handoff - #8083
Open
Manideep Malyala (manideep-malyala) wants to merge 8 commits into
Open
Conversation
Manideep Malyala (manideep-malyala)
deployed
to
github-app-auth
September 5, 2026 01:21 — with
GitHub Actions
Active
Manideep Malyala (manideep-malyala)
deployed
to
github-app-auth
September 5, 2026 01:21 — with
GitHub Actions
Active
Manideep Malyala (manideep-malyala)
deployed
to
github-app-auth
September 5, 2026 01:22 — with
GitHub Actions
Active
Manideep Malyala (manideep-malyala)
deployed
to
github-app-auth
September 5, 2026 01:22 — with
GitHub Actions
Active
Copilot started reviewing on behalf of
Manideep Malyala (manideep-malyala)
September 5, 2026 01:22
View session
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The sequential regression test iterates an input type that may be non-iterable, causing type-checking failure.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Preserves supported multimodal user content during orchestrator handoffs while removing runtime-only control payloads.
Changes:
- Adds role-aware semantic content filtering.
- Expands multimodal handoff tests.
- Adds sequential URI propagation coverage.
File summaries
| File | Review |
|---|---|
python/packages/orchestrations/tests/test_sequential.py |
Requires narrowing AgentRunInputs before iteration to satisfy type checking. |
python/packages/orchestrations/tests/test_handoff.py |
Covers multimodal preservation and control-content filtering. |
python/packages/orchestrations/agent_framework_orchestrations/_orchestrator_helpers.py |
Preserves allowed user multimodal content during cleanup. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
…tation in orchestrator helpers
Manideep Malyala (manideep-malyala)
deployed
to
github-app-auth
September 5, 2026 01:27 — with
GitHub Actions
Active
Manideep Malyala (manideep-malyala)
requested a balanced review from Copilot
September 5, 2026 01:28
Copilot started reviewing on behalf of
Manideep Malyala (manideep-malyala)
September 5, 2026 01:29
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #7822 (replaces #7823)
Summary
uri,data,hosted_file,hosted_vector_store) forusermessages during orchestrator handoffs.assistantand other non-user messages text-only to prevent OpenAI API serialization failures.function_call,function_result,approval_response).test_handoff.pycovering all multimodal variants and regression test intest_sequential.py.