Skip to content

ci(changesets): version packages - #524

Merged
omeraplak merged 1 commit into
mainfrom
changeset-release/main
Aug 26, 2025
Merged

omeraplak merged 1 commit into
mainfrom
changeset-release/main

Conversation

@voltagent-bot

Copy link
Copy Markdown
Member

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@voltagent/core@0.1.85

Patch Changes

  • #522 cba72d0 Thanks @omeraplak! - fix: sub-agent stream error handling and propagation - [BUG] SubAgent handoff returns success with empty response when sub-agent emits error in fullStream #521

    What Changed

    Fixed a critical issue where sub-agent stream errors were incorrectly reported as successful operations with empty responses. Supervisors now properly detect and handle sub-agent failures with configurable error handling behavior.

    The Problem (Before)

    When a sub-agent's streamText encountered an error event:

    • ❌ Supervisor received status: "success" with empty response
    • ❌ No way to distinguish between empty success and failure
    • ❌ Error details were lost, making debugging difficult
    • ❌ Supervisors would continue as if the operation succeeded
    // Before: Sub-agent fails but supervisor doesn't know
    const result = await subAgentManager.handoffTask({
      task: "Process data",
      targetAgent: failingAgent,
    });
    
    // result.status === "success" (WRONG!)
    // result.result === "" (No error info)

    The Solution (After)

    Sub-agent errors are now properly detected and reported:

    • ✅ Stream errors return status: "error" with error details
    • ✅ Error messages included in responses (configurable)
    • ✅ Partial content preserved when errors occur after text generation
    • ✅ New configuration options for flexible error handling
    // After: Proper error detection and handling
    const result = await subAgentManager.handoffTask({
      task: "Process data",
      targetAgent: failingAgent,
    });
    
    // result.status === "error" (CORRECT!)
    // result.result === "Error in FailingAgent: Stream processing failed"
    // result.error === Error object with full details

    New Configuration Options

    Added SupervisorConfig options for customizable error handling:

    const supervisor = new Agent({
      name: "Supervisor",
      subAgents: [agent1, agent2],
      supervisorConfig: {
        // Throw exceptions on stream errors instead of returning error results
        throwOnStreamError: false, // default: false
    
        // Include error messages in empty responses
        includeErrorInEmptyResponse: true, // default: true
    
        // Custom guidelines for error handling
        customGuidelines: ["When a sub-agent fails, provide alternative solutions"],
      },
    });

@ghost

ghost commented Aug 26, 2025 •

Copy link
Copy Markdown

📝 Documentation Analysis

All docs are up to date! 🎉


✅ Latest commit analyzed: cce567c | Powered by Joggr

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying voltagent with  Cloudflare Pages  Cloudflare Pages

Latest commit: cce567c
Status: ✅  Deploy successful!
Preview URL: https://95943253.voltagent.pages.dev
Branch Preview URL: https://changeset-release-main.voltagent.pages.dev

View logs

@omeraplak
omeraplak merged commit 35232f2 into main Aug 26, 2025
25 checks passed
@omeraplak
omeraplak deleted the changeset-release/main branch August 26, 2025 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.

2 participants