(userResizedInput = true)}>
{#if messages.length === 0}

Nomos

Your resident operator. Ask about the fleet, or tell it to act.

{#if suggestions.length}
{#each suggestions as q} {/each}
{/if}
{/if} {#each messages as msg, idx (msg.id)}
{#if msg.role === 'user'}
You {#if msg.created_at} {formatTime(msg.created_at)} {/if}
{msg.text}
{:else}
Nomos {#if msg.created_at} {formatTime(msg.created_at)} {/if}
{#if msg.text}
{@html render(msg.text)} {#if idx === messages.length - 1 && streaming} {/if}
{/if} {#if msg.tools.length > 0}
{#each msg.tools as tool (tool.id)} {/each}
{/if} {#if idx === messages.length - 1 && msg.text === '' && (streaming || indicatorDone || error)}
{#if error} {:else if indicatorDone} {:else} {/if} {indicatorLabel}
{/if}
{/if}
{/each} {#if question} {/if}
{#if connectionState === 'disconnected'}
{:else if connectionState === 'reconnecting'}
{/if} {#if error}
{error}
{/if} {#each chatErrors as err (err.id)}
{err.message} {#if err.action} {/if}
{/each}
{ e.preventDefault() submit() }} >