{#if $streaming && $currentSession}
{toolCount} tool{toolCount === 1 ? '' : 's'} · {runningCount} running
{/if} {#if $currentTask?.outcome}
{#if $currentTask.outcome === 'failure'} {:else} {/if} {$currentTask.summary || `Task ${$currentTask.outcome}.`}
{/if} {#if $planSteps.length > 0}
Plan {planDone}/{planTotal}
    {#each $planSteps as step (step.id)}
  1. {#if step.status === 'done'} {:else if step.status === 'running'} {:else if step.status === 'failed'} {:else} {/if} {step.title}
  2. {/each}
{/if} {#if toolCount > 0}
{#if openTools}
{#each toolGroups as group} {@const isLatest = group.msgIndex === toolGroups[toolGroups.length - 1]?.msgIndex}
{#each group.entries as t (t.id)}
{#if t.type === 'tool_result' && t.error} {:else if t.type === 'tool_result'} {:else} {/if} {toolSummary(t)}
{/each}
{/each}
{/if}
{/if} {#if digest && digest.total_executions > 0}
{#if open}
{#each Object.entries(digest.by_status) as [status, count]} {status} × {count} {/each}
{#if digest.knowledge_created.length}
Learned this session
    {#each digest.knowledge_created as title}
  • {title}
  • {/each}
{/if}
{/if}
{/if}