fix(pi-coding-agent): remove explanatory comment from agent_end handler
This commit is contained in:
parent
b721ec1445
commit
3509107228
1 changed files with 0 additions and 4 deletions
|
|
@ -546,10 +546,6 @@ export async function handleAgentEvent(host: InteractiveModeStateHost & {
|
|||
host.loadingAnimation = undefined;
|
||||
host.statusContainer.clear();
|
||||
}
|
||||
// If message_end did not already finalize the streaming component
|
||||
// (e.g. abort path or event ordering edge case), finalize it now
|
||||
// instead of removing it. Calling removeChild would erase the last
|
||||
// assistant message from the chat history (issue #4197).
|
||||
if (host.streamingComponent && host.streamingMessage) {
|
||||
host.streamingComponent.setShowMetadata(true);
|
||||
host.streamingComponent.updateContent(host.streamingMessage);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue