feat(examples/chat): announce the research subagent's stream identity - #874
Merged
Conversation
Adopts threadplane-middleware 0.0.2's announce_subagent in the canonical demo's research @tool: the child's tools:<uuid> stream namespace is bound to the dispatching call_* id via one custom event, so @threadplane/langgraph (0.0.62) attributes the stream exactly instead of positionally. Sequenced deliberately after both packages published — this is the first consumer resolving announce_subagent from PyPI rather than from source. e2e 54/54 (research-subagent @drift spec included), uv.lock resolves threadplane-middleware 0.0.2 from the registry. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
blove
enabled auto-merge (squash)
August 30, 2026 18:48
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.
Final piece of the subagent-identity arc (#869 → middleware 0.0.2 on PyPI →
@threadplane/langgraph0.0.62 on npm → this).The canonical demo's
researchtool now callsannounce_subagent(config, tool_call_id), binding the child graph'stools:<uuid>stream namespace to the dispatchingcall_*id. The frontend attributes the stream exactly instead of relying on the single-candidate positional fallback.Notable as a supply-chain checkpoint: this is the first consumer resolving
announce_subagentfrom PyPI (threadplane-middleware>=0.0.2, lock pinned to the registry artifact) rather than from in-repo source — so it validates the published package, not just the code that produced it.Verification
uv.lockresolvesthreadplane-middleware 0.0.2frompypi.org(not a path source)research-subagent@driftspec — aimock mocks only the OpenAI layer, so the real graph ran with the real binding event through the real published middlewareAnnotated/InjectedToolCallIdwired the same way as the cockpit demo🤖 Generated with Claude Code