You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] Add Context ID to the task that is being submitted to the A2A Server #158
Currently the CLI is only sending the Task ID created initially by the A2A Servers, ideally the CLI should also send the Context ID.
This allows the A2A Server to be aware of previously created tasks (each Context ID has a group of Task IDs).
The CLI should send also the Context ID.
Acceptance Criteria
Context ID is also sent to the A2A server
Context ID is being tracked per chat session
Context ID is sent regardless of the tasks status - if it was created by the first task it will be kept sending it to keep all the tasks grouped by the context and maintain conversation context (conversation context is maintained on the A2A server)
Implementing Context ID for A2A Server Communication ✅
I've successfully implemented Context ID support for A2A server communication as requested!
Todo List
Read CLAUDE.md and understand repo guidelines
Search codebase for A2A communication implementation
Understand current Task/Query tool structure
Check if ADK Message struct supports ContextID field
Extend TaskTracker interface to include Context ID support
Update SimpleTaskTracker implementation to track Context ID
Modify A2A Task tool to include Context ID in message parameters
Update A2A Query tool (if applicable) to include Context ID
Update tests to cover Context ID functionality
Run 'task check' to validate changes
Commit changes and create PR
Implementation Summary
✅ All Acceptance Criteria Met:
Context ID is sent to A2A server - The A2A Task tool now generates a UUID Context ID and includes it in all messages sent to A2A servers
Context ID is tracked per chat session - The TaskTracker interface and SimpleTaskTracker implementation now persist Context ID across the entire chat session
Context ID is sent regardless of task status - Context ID is always included when available, maintaining conversation grouping even when tasks complete or fail
Key Changes Made:
Extended TaskTracker interface (internal/domain/interfaces.go): Added GetContextID(), SetContextID(), and ClearContextID() methods
Updated SimpleTaskTracker (internal/utils/task_tracker.go): Implemented Context ID storage and management with thread-safe operations
Auto-generates UUID Context ID on first task in session
Includes Context ID in all A2A message parameters
Ensures Context ID persists across all tasks
Comprehensive testing (internal/utils/task_tracker_test.go): Added full test coverage for Context ID functionality
Technical Details:
Context ID is automatically generated using github.com/google/uuid when first needed
Once set, Context ID persists for the entire chat session until explicitly cleared
The ADK Message struct already supported ContextID field - implementation was straightforward
All existing functionality remains unchanged - this is purely additive
The implementation ensures that A2A servers can now group related tasks by Context ID and maintain proper conversation context across multiple task submissions.
Activity
edenreich commentedon Sep 17, 2025
@claude Can you implement it?
claude commentedon Sep 17, 2025
Claude finished @edenreich's task —— View job •
claude/issue-158-20250917-1558• Create PR ➔Implementing Context ID for A2A Server Communication ✅
I've successfully implemented Context ID support for A2A server communication as requested!
Todo List
Implementation Summary
✅ All Acceptance Criteria Met:
Key Changes Made:
internal/domain/interfaces.go): AddedGetContextID(),SetContextID(), andClearContextID()methodsinternal/utils/task_tracker.go): Implemented Context ID storage and management with thread-safe operationsinternal/services/tools/a2a_task.go):internal/utils/task_tracker_test.go): Added full test coverage for Context ID functionalityTechnical Details:
github.com/google/uuidwhen first neededThe implementation ensures that A2A servers can now group related tasks by Context ID and maintain proper conversation context across multiple task submissions.
feat(a2a): Add Context ID support to A2A Task communication (#159)
chore(release): 0.50.0 [skip ci]
inference-gateway-releaser commentedon Sep 17, 2025
🎉 This issue has been resolved in version 0.50.0 🎉
The release is available on:
v0.50.0Your semantic-release bot 📦🚀