{#each messages as message, i} {#if i === 0 && preprompt}
{/if}
{:else}
{/each} {#if pending}
{/if}