{#key message.id}
{model?.name ?? message.model} {#if message.timestamp} {/if}
{#if message?.files && message.files?.filter((f) => f.type === 'image').length > 0}
{#each message.files as file}
{#if file.type === 'image'} {message.content} {/if}
{/each}
{/if}
{#if (message?.statusHistory ?? [...(message?.status ? [message?.status] : [])]).length > 0} {@const status = ( message?.statusHistory ?? [...(message?.status ? [message?.status] : [])] ).at(-1)}
{#if status?.done === false}
{/if} {#if status?.action === 'web_search' && status?.urls}
{status?.description}
{:else}
{status?.description}
{/if}
{/if} {#if edit === true}