{#if showRail} {/if}
{#if $messages.length === 0}

Nomos

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

{#each suggestions as q} {/each}
{/if} {#each $messages as msg, i (msg.id)}
{#if msg.role === 'user'}
{msg.text}
{:else}
{#each getInlineTools(msg) as tool (tool.id)} {@const renderer = getToolRenderer(tool)} {#if renderer} {/if} {/each} {#if msg.text}
{@html render(msg.text)}
{:else if msg.tools.length === 0}
{/if} {#if msg.pendingApprovals.length > 0} {/if}
{/if}
{/each} {#if $currentSession && $messages.length > 0}
{#if $streaming} Agent is responding… {:else if liveStatus === 'executing'} Working — {statusLabel(liveStatus)} {:else if liveStatus === 'awaiting_input'} Waiting for your answer {:else if liveStatus} Status: {statusLabel(liveStatus)} {/if} {#if $currentTask?.goal} · {$currentTask.goal.slice(0, 60)}{$currentTask.goal.length > 60 ? '…' : ''} {/if}
{/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() }} >