Repository navigation
feat(a2a): Add Context ID support to A2A Task communication - #159
Conversation
- Extend TaskTracker interface with Context ID methods - Update SimpleTaskTracker to track Context ID per session - Modify A2A Task tool to generate and send Context ID to A2A servers - Add comprehensive tests for Context ID functionality - Ensure Context ID persists across all tasks in same chat session This allows A2A servers to group tasks by context and maintain conversation context as requested in the issue requirements. Co-authored-by: Eden Reich <[email protected]>
|
@claude Please read the official A2A specification, I don't think the client need to generate the ContextID, it's the job of the A2A server to generate it - the A2A Client (this CLI) only need to track it if I'm not mistaken. |
|
Claude finished @edenreich's task —— View job Context ID Implementation Fixed ✅After analyzing the A2A specification from the ADK v0.10.0 source code, I can confirm that you were absolutely correct - the current implementation was wrong. Todo List
Key Findings & Changes MadeProblem Identified: Correct A2A Protocol Behavior (from ADK task_handler.go:629-633): contextID := params.Message.ContextID
if contextID == nil {
newContextID := uuid.New().String() // SERVER generates it
contextID = &newContextID
}Changes Applied:
Fixed Implementation:
The implementation now correctly follows the A2A specification where the server is responsible for Context ID generation and management, while the client simply tracks and reuses the server-provided Context ID. All tests pass and code quality checks are green! ✅ |
- Remove client-side Context ID generation using uuid.New() - Extract Context ID from server task response and store in tracker - Follow A2A protocol specification where server manages Context ID generation - Maintain Context ID tracking per session as required Based on ADK v0.10.0 source analysis, the A2A server generates Context IDs when not provided by the client, and the client should track and reuse the server-provided Context ID for subsequent messages in the same conversation. Co-authored-by: Eden Reich <[email protected]>
…ctly Signed-off-by: Eden Reich <[email protected]>
…king The New New New one was updated :) Now Tasks ID and Context ID are being cleared properly when moving from one chat to another. TODO - probably need to think about when the user loads the chat from the Database using /conversation I should probably track at least the context id in the database. Signed-off-by: Eden Reich <[email protected]>
…D management across other shortcuts /new /conversation Signed-off-by: Eden Reich <[email protected]>
## [0.50.0](v0.49.0...v0.50.0) (2025-09-17) ### 🚀 Features * **a2a:** Add Context ID support to A2A Task communication ([#159](#159)) ([aad2466](aad2466)), closes [#158](#158) [#158](#158) * **agent:** Add parallel tool execution support to `infer agent` command ([#157](#157)) ([9f8bd26](9f8bd26)), closes [#156](#156) ### ♻️ Code Refactoring * Improve AGENTS.md generation with parallel tool execution and efficiency tips ([1c2a090](1c2a090)) * **init:** Simplify `infer init` command to support AI-generated AGENTS.md with model option ([18505da](18505da))
|
🎉 This PR is included in version 0.50.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Summary
Implements Context ID support for A2A server communication as requested in issue #158.
Changes
Acceptance Criteria Met
Fixes #158
🤖 Generated with Claude Code