Skip to content

feat(agent-core): stream live subagent events into background task output buffer #667

@thecannabisapp

Description

@thecannabisapp

The /tasks view only shows a static output preview for background agents. While a subagent is running, the user cannot see what it is currently doing; the output only appears once the task completes or errors.

We fixed this in our fork by wiring the subagent's AgentEvent stream into the background task output buffer via formatAgentEvent(), so live turn starts, tool calls, results, and errors are appended as they happen.

Commit with the fix: thecannabisapp@003420b9

If the maintainers want to merge this, the key change is in packages/agent-core/src/agent/background/agent-task.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions