mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 05:02:14 +00:00
Set isStreaming=false on agent_end event, before emitting to listeners
Was only setting in finally block, after event was emitted.
This commit is contained in:
parent
6972ce4e87
commit
e49e787322
1 changed files with 1 additions and 0 deletions
|
|
@ -306,6 +306,7 @@ export class Agent {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "agent_end":
|
case "agent_end":
|
||||||
|
this._state.isStreaming = false;
|
||||||
this._state.streamMessage = null;
|
this._state.streamMessage = null;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue