{#if normalizedContent !== null} {#if isStreaming} {/if} {:else if hasSegments} {#each segmentsToRender as segment (segment.id)} {#if segment.type === "text"} {:else if segment.type === "tool-invocation"} {:else if segment.type === "tool-result" && segment.toolName?.includes("task")} {/if} {/each} {/if}