fix(pi-coding-agent): remove explanatory comment from agent_end handler

This commit is contained in:
Nils Reeh 2026-04-15 03:12:17 +02:00
parent b721ec1445
commit 3509107228

View file

@ -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);