Skip to content

Python: Preserve A2A response message ids#6053

Open
he-yufeng wants to merge 1 commit into
microsoft:mainfrom
he-yufeng:fix/a2a-preserve-message-id
Open

Python: Preserve A2A response message ids#6053
he-yufeng wants to merge 1 commit into
microsoft:mainfrom
he-yufeng:fix/a2a-preserve-message-id

Conversation

@he-yufeng
Copy link
Copy Markdown
Contributor

Summary

  • Preserve A2A message_id on streamed task status updates
  • Preserve message_id for in-progress task messages and terminal task history messages
  • Keep artifact IDs unchanged for artifact-backed updates

Closes #5949.

To verify

  • python -m py_compile python\packages\a2a\agent_framework_a2a\_agent.py python\packages\a2a\tests\test_a2a_agent.py
  • uv run pytest packages\a2a\tests\test_a2a_agent.py::test_streaming_single_working_update_with_message packages\a2a\tests\test_a2a_agent.py::test_streaming_status_update_event_yields_content packages\a2a\tests\test_a2a_agent.py::test_task_status_update_event_metadata_merged packages\a2a\tests\test_a2a_agent.py::test_history_message_metadata_propagated -q
  • uv run pytest packages\a2a\tests\test_a2a_agent.py -q
  • uv run ruff check packages\a2a\agent_framework_a2a\_agent.py packages\a2a\tests\test_a2a_agent.py
  • git diff --check

Note: uv run ruff format --check packages\a2a\agent_framework_a2a\_agent.py packages\a2a\tests\test_a2a_agent.py reports an existing formatting change in an unrelated test function signature. I left that untouched to avoid broad formatting churn.

Copilot AI review requested due to automatic review settings May 23, 2026 14:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python: [Bug]: [A2A] Correctly Handle task_id and message_id Returned by A2A

3 participants