Skip to content

Conversation

@edenreich
Copy link
Contributor

Adds --task-id and --context-id parameters to submit commands for resuming existing tasks and continuing conversations.

Changes

  • Added --task-id flag to both submit commands
  • Enhanced message payload to include task/context IDs when provided
  • Updated debug logging and help text
  • Maintained backward compatibility

Closes #8

🤖 Generated with Claude Code

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>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
@edenreich edenreich force-pushed the claude/issue-8-20250907-0012 branch from 1610236 to b450f8f Compare September 7, 2025 00:54
@edenreich edenreich merged commit ccd9cec into main Sep 7, 2025
1 check passed
@edenreich edenreich deleted the claude/issue-8-20250907-0012 branch September 7, 2025 00:54
ig-semantic-release-bot bot added a commit that referenced this pull request Sep 7, 2025
## [0.6.0](v0.5.2...v0.6.0) (2025-09-07)

### ✨ Features

* Add task resumption support to submit commands ([#9](#9)) ([ccd9cec](ccd9cec)), closes [#8](#8)
* **streaming:** Add comprehensive Task ID and summary display at end of streaming ([#7](#7)) ([069cd58](069cd58)), closes [#6](#6)
@ig-semantic-release-bot
Copy link
Contributor

🎉 This PR is included in version 0.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

[FEATURE] Add task resumption support to submit commands

2 participants