fix(subagent): forward assistant stream events for internal announce
This commit is contained in:
parent
9687e7f2a6
commit
4d6017e782
2 changed files with 28 additions and 4 deletions
|
|
@ -129,7 +129,9 @@ export class AsyncAgent {
|
|||
private shouldForwardEvent(event: AgentEvent | MulticaEvent): boolean {
|
||||
if (!this.agent.isInternalRun) return true;
|
||||
if (!this.forwardInternalAssistant) return false;
|
||||
if (event.type !== "message_end") return false;
|
||||
if (event.type !== "message_start" && event.type !== "message_update" && event.type !== "message_end") {
|
||||
return false;
|
||||
}
|
||||
|
||||
const maybeMessage = (event as { message?: unknown }).message;
|
||||
if (!maybeMessage || typeof maybeMessage !== "object") return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue