{#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)}
{#if step.status === 'done'}
{:else if step.status === 'running'}
{:else if step.status === 'failed'}
{:else}
{/if}
{step.title}
{/each}
{/if} {#if toolCount > 0}
(openTools = !openTools)} >
{#if openTools}
{:else}
{/if}
Tool activity
{toolCount} call{toolCount === 1 ? '' : 's'}
{#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}
(open = !open)} >
{#if open}
{:else}
{/if} This session
{digest.total_executions} execution{digest.total_executions === 1 ? '' : 's'} {#if digest.knowledge_created.length}
{digest.knowledge_created.length}
{/if}
{#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}