Skip to content

feat: add TaskStreamLifecycleHook for stream lifecycle management - #1008

Open
kabir wants to merge 1 commit into
a2aproject:mainfrom
kabir:close-streams-hook
Open

feat: add TaskStreamLifecycleHook for stream lifecycle management#1008
kabir wants to merge 1 commit into
a2aproject:mainfrom
kabir:close-streams-hook

Conversation

@kabir

@kabir kabir commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Add a CDI-discoverable hook that lets users observe task stream lifecycle events (subscribe, unsubscribe, event) and close all ChildQueues for a task on demand via StreamCloseHandle. Wired through InMemoryQueueManager, MainEventBusProcessor, and ReplicatedQueueManager.

Includes a stream-lifecycle example with integration tests for all three transports (JSONRPC, gRPC, REST) and documentation.

This fixes #990

@kabir
kabir force-pushed the close-streams-hook branch from 17e3f87 to fa7a39c Compare August 4, 2026 16:23
Add a CDI-discoverable hook that lets users observe task stream lifecycle
events (subscribe, unsubscribe, event) and close all ChildQueues for a
task on demand via StreamCloseHandle. Wired through InMemoryQueueManager,
MainEventBusProcessor, and ReplicatedQueueManager.

Includes a stream-lifecycle example with integration tests for all three
transports (JSONRPC, gRPC, REST) and documentation.

This fixes a2aproject#990

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kabir
kabir force-pushed the close-streams-hook branch from fa7a39c to b4e0d40 Compare August 4, 2026 17:24
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.

Provide an API/hook to close streams after INPUT_REQUIRED / AUTH_REQUIRED

1 participant