{#if turn.origin !== "agent"} {/if} {originLabel} {fmtTime(turn.startedAt)} {fmtDuration(duration)} {#if toolCount > 0} {toolCount} tool {toolCount === 1 ? "call" : "calls"} {/if} {#if turn.thinking > 0 && turn.status === "running" && !turn.reasoning} thinking… {/if} {#if turn.usage} in {fmtTokens(turn.usage.input)} · out {fmtTokens(turn.usage.output)} · cache {fmtTokens(turn.usage.cache_read)}/{fmtTokens( turn.usage.cache_creation )} {#if typeof turn.usage.cost_usd === "number"} · {fmtMoney(turn.usage.cost_usd)} {/if} {/if}
{#if turn.userText && turn.origin === "task"}

{turn.userText}

{:else if turn.userText} {/if} {#if turn.reasoning.trim()} {/if} {#if turn.roots.length > 0}
{#each turn.roots as rootId (rootId)} {#if turn.nodes[rootId]} {/if} {/each}
{/if} {#each turn.says as text, index (index)} {/each} {#if turn.text} {:else if turn.status === "running" && turn.origin !== "agent" && turn.roots.length === 0 && turn.thinking === 0}

Waiting for the model…

{/if}