You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(agent-core): stream live subagent events into background task output buffer #667
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.
Thank you for the clear write-up and the fork fix — this issue sat unattended for a while, so I've opened PR #2130 that rebases your approach onto the current architecture (the AgentBackgroundTask / SubagentHandle shapes have changed since June). The main difference: instead of monkey-patching agent.emitEvent, it adds a small Agent.onEvent subscription API and exposes it through SubagentHandle.subscribeToEvents. Your commit and this thread are credited in the PR description. Very happy to hear whether this matches what you had in mind — and of course feel free to tell me if you'd rather land your own version.
Activity
2youg1 commentedon Jul 24, 2026
Thank you for the clear write-up and the fork fix — this issue sat unattended for a while, so I've opened PR #2130 that rebases your approach onto the current architecture (the
AgentBackgroundTask/SubagentHandleshapes have changed since June). The main difference: instead of monkey-patchingagent.emitEvent, it adds a smallAgent.onEventsubscription API and exposes it throughSubagentHandle.subscribeToEvents. Your commit and this thread are credited in the PR description. Very happy to hear whether this matches what you had in mind — and of course feel free to tell me if you'd rather land your own version.thecannabisapp commentedon Jul 24, 2026
Thank you