Skip to content

feat: Additonal tests for request handlers.#969

Draft
bartek-w wants to merge 1 commit into1.0-devfrom
bartekw-task-restore
Draft

feat: Additonal tests for request handlers.#969
bartek-w wants to merge 1 commit into1.0-devfrom
bartekw-task-restore

Conversation

@bartek-w
Copy link
Copy Markdown
Collaborator

@bartek-w bartek-w commented Apr 14, 2026

Printing error when AgentExecutor returns TaskStatusUpdateEvent instead of Task as a first message. Additionally TaskStatusUpdateEvent is replaced with Task objected as event.

Fixes #965

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 14, 2026

🧪 Code Coverage (vs 1.0-dev)

⬇️ Download Full Report

Base PR Delta
src/a2a/server/agent_execution/active_task.py 95.57% 95.47% 🔴 -0.10%
Total 92.49% 92.49% ⚪️ 0.00%

Generated by coverage-comment.yml

Copy link
Copy Markdown
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 pull request refines task event processing and restoration logic to ensure protocol compliance, specifically by guaranteeing the first event in a stream is a Task object. It also updates documentation and adds integration tests for terminal and input-required task states. Feedback focuses on simplifying the task replacement logic in active_task.py and expanding test helper functions to handle more event types, which improves the consistency and robustness of the test suite.

Comment thread src/a2a/server/agent_execution/active_task.py
Comment thread tests/integration/test_scenarios.py
Comment thread tests/integration/test_scenarios.py
Comment thread tests/integration/test_scenarios.py Outdated
@bartek-w bartek-w changed the title Additonal tests for request handlers. feat: Additonal tests for request handlers. Apr 14, 2026
@bartek-w bartek-w force-pushed the bartekw-task-restore branch 2 times, most recently from 59aee4f to 916c406 Compare April 14, 2026 12:39
@bartek-w bartek-w force-pushed the bartekw-task-restore branch from 916c406 to e4debd7 Compare April 14, 2026 12:40
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.

1 participant