feat: Add task resumption support to submit commands#9
Merged
Conversation
Added --task-id and --context-id parameters to both tasks submit and tasks submit-streaming commands to enable resuming existing tasks and continuing within existing contexts. Key changes: - Added --task-id flag to submitTaskCmd and submitStreamingTaskCmd - Added --context-id flag to submitTaskCmd and submitStreamingTaskCmd (already existed, now documented as optional) - Modified message payload construction to include taskId and contextId fields when provided - Updated debug logging to include task_id parameter - Regenerated types from A2A schema to ensure compatibility This enables debugging scenarios like: - Resuming tasks in input-required state - Continuing multi-turn conversations - Testing context preservation across task boundaries Usage examples: - a2a tasks submit --task-id "task-123" "Additional input" - a2a tasks submit --context-id "ctx-456" "Follow up question" - a2a tasks submit-streaming --task-id "task-789" "Continue processing" Closes #8 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
edenreich
commented
Sep 7, 2025
edenreich
commented
Sep 7, 2025
Signed-off-by: Eden Reich <eden.reich@gmail.com>
1610236 to
b450f8f
Compare
Contributor
|
🎉 This PR is included in version 0.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Adds
--task-idand--context-idparameters to submit commands for resuming existing tasks and continuing conversations.Changes
--task-idflag to both submit commandsCloses #8
🤖 Generated with Claude Code