Skip to content

feat: allow PlanAgent task tool to forward subagent stream events via…#959

Merged
omeraplak merged 1 commit intomainfrom
feat/plan-agent-supervisor-config
Jan 17, 2026
Merged

feat: allow PlanAgent task tool to forward subagent stream events via…#959
omeraplak merged 1 commit intomainfrom
feat/plan-agent-supervisor-config

Conversation

@omeraplak
Copy link
Member

@omeraplak omeraplak commented Jan 17, 2026

… supervisorConfig

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

What is the new behavior?

fixes (issue)

Notes for reviewers


Summary by cubic

Enable forwarding of subagent stream events in PlanAgent via task.supervisorConfig. Calling planAgent.streamText can now emit subagent tool-call, tool-result, and text-delta events.

  • New Features
    • Added task.supervisorConfig with fullStreamEventForwarding.types to pass through subagent events (e.g., ["tool-call", "tool-result", "text-delta"]).
    • Connected supervisorConfig to SubAgentManager and updated docs with usage example.

Written for commit 4f34264. Summary will update on new commits.

Summary by CodeRabbit

  • New Features

    • PlanAgent task tool now supports forwarding subagent stream events through supervisor configuration, with configurable event types (tool-call, tool-result, text-delta).
  • Documentation

    • Added comprehensive guidance and examples showing how to enable stream event forwarding in PlanAgent initialization.

✏️ Tip: You can customize this high-level summary in your review settings.

@changeset-bot
Copy link

changeset-bot bot commented Jan 17, 2026

🦋 Changeset detected

Latest commit: 4f34264

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@voltagent/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 17, 2026

📝 Walkthrough

Walkthrough

Introduces stream event forwarding capability to PlanAgent's task tool by adding a supervisorConfig option that carries configuration through to SubAgentManager. Includes type definitions, implementation wiring, documentation, and a changeset entry.

Changes

Cohort / File(s) Summary
Configuration & Type Updates
packages/core/src/planagent/plan-agent.ts
Adds supervisorConfig?: SupervisorConfig to TaskToolOptions type definition and threads this config into SubAgentManager instantiation as the third argument
Documentation & Release Notes
.changeset/planagent-task-stream-forwarding.md, website/docs/agents/plan-agent.md
Provides patch release note and usage guidance for forwarding subagent stream events via task.supervisorConfig.fullStreamEventForwarding configuration with supported event types (tool-call, tool-result, text-delta) and code examples

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A configuration whisper flows,
Through supervisorConfig it goes,
Stream events forward with delight,
SubAgents coordinated right!
Forwarding magic, clean and bright. ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main feature: enabling PlanAgent task tool to forward subagent stream events via supervisorConfig.
Description check ✅ Passed The description follows the template with most sections completed: commit guidelines checked, docs updated, changesets added. However, related issues are not linked and no tests are mentioned as added.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Comment @coderabbitai help to get the list of available commands and usage tips.

@joggrbot

This comment has been minimized.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

@cloudflare-workers-and-pages
Copy link

Deploying voltagent with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4f34264
Status: ✅  Deploy successful!
Preview URL: https://f8b94371.voltagent.pages.dev
Branch Preview URL: https://feat-plan-agent-supervisor-c.voltagent.pages.dev

View logs

@omeraplak omeraplak merged commit 99ba28c into main Jan 17, 2026
23 checks passed
@omeraplak omeraplak deleted the feat/plan-agent-supervisor-config branch January 17, 2026 15:54
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.

1 participant