{#if expanded}
{#each entries as item, entryIdx} {#if item.type === 'reasoning'} {:else} {/if} {/each}
{/if} {#if !expanded && hasPendingApproval && chatId}
{#each pendingCalls as item}
{toolLabel(item.name, item.arguments || {})}
{/each}
{/if}