{#if agentsOpen}

agents

{#await agentsView() then AgentsView} openAgent(agent, true)} />{/await}
{/if} {#if extensionsOpen}

extensions

{#await extensionsView() then ExtensionsView}{/await}
{/if}
{#if inline && !full}
{#if onback} {/if}

{session?.name || 'untitled session'}

{#snippet icon()}{/snippet} {#if session?.parent_id}
  • {/if}
  • openAgent(agent)} ontree={openAgentsTree} /> openArtifact({ id: found.id, version: found.version, title: found.title, })} /> { commandPanel = null; displayed = null; terminal = { job, command: '' }; }} />
    {/if}
    {#if !settled && !transcript.error}
    {#each [92, 100, 84, 96, 70, 88, 100, 60] as width, index (index)}{/each}
    {/if}
    (hot = null)} role="presentation" >
    {#if transcript.loading} {:else if transcript.error}

    (。•︿•。) couldn't read the transcript: {transcript.error}

    {:else if transcript.groups.length === 0}

    (˶ᵔ ᵕ ᵔ˶) nothing here yet. say hi below

    {:else if transcript.more}

    earlier messages load as you scroll up

    {/if} {#each transcript.groups as group (group.key)} {#if group.kind === 'user'} {@const unseen = group.state === 'sending' || group.state === 'sent'} {@const agentRole = agentBubbleRole(group, sessionId, knownSessions)} {@const senderLabel = (group.from?.trim() || null) ?? (agentRole ? 'agent' : null)}
    {#if senderLabel || group.gap} {#if agentRole === 'subagent'}{/if}{senderLabel ?? 'you'}{#if group.gap}{' · '}{group.gap}{/if} {/if} {#if group.images.length} {/if} {#if group.files.length}
      {#each group.files as file, index (index)} {@const name = filenameParts(file.name)}
    • {name.stem}{name.extension} {formatSize(file.size)}
    • {/each}
    {/if} {#if group.text.trim()}
    {#each pieces(group.text) as piece, index (index)}{#if piece.kind === 'quote'}
    {piece.text}
    {:else if piece.kind === 'code'}
    {piece.text}
    {:else}

    {piece.text}

    {/if}{/each}
    {/if} {#if group.at || group.skill || (transcript.receipt === group.key && group.state !== 'failed')} {#if group.skill}skill · {group.skill}{/if} {#if group.at} {/if} {#if transcript.receipt === group.key && group.state !== 'failed'} {/if} {/if} {#if group.state === 'failed'} not sent: {group.error} {/if}
    {:else if group.kind === 'assistant'}
    {#if group.plate}albedo{/if}
    {:else if group.kind === 'shell'} openShellCommand(group.command.id)} openLabel={inline ? 'Open command output' : 'Open command on canvas'} /> {:else if group.kind === 'work'} step.kind === 'progress' || step.key.startsWith('live:') || (step.kind === 'tool' && !step.done), ))} {transcript} session={view} onreview={(turnId, from, path) => review(group.key, turnId, from, path)} onartifact={openArtifact} ondisplay={openDisplay} /> {:else if group.kind === 'end'} {@const metaText = [ group.elapsedMs >= 1000 ? formatElapsed(group.elapsedMs) : '', group.tools ? `${group.tools} ${group.tools === 1 ? 'tool' : 'tools'}` : '', ] .filter(Boolean) .join(' · ')} {@const hasReview = !!(group.changed.files && group.turnId)}

    {face(group.mood, group.seed)} {#if metaText} {metaText} {/if} {#if hasReview} {/if} {#if group.seed} {/if} {#if group.turnId && group.tools && !inline} {/if} {#if group.text} {/if}

    {:else if group.kind === 'note'} {@const text = group.text.trim()} {#if folds(text)}
    {firstSentence(text)}

    {text}

    {:else}

    {text}

    {/if} {:else if group.kind === 'failure'} {@const open = unfolded === group.key} {:else if group.kind === 'compaction'}

    {'(>_<)'} earlier context was compacted here

    {/if} {/each} {#if (running || answering) && (compaction || !(prefs.collapseTraces && last?.kind === 'work'))}

    {#if compactionLabel}{compactionLabel}{:else if !transcript.streaming && activity}{activity}{/if}

    {/if}
    {#if settled && !pinned} {/if} {@render handle?.()} {#if answer}
    {answer.name}
    {answer.text}
    {/if} {#if inline} {#if artifact}
    {artifact.title}
    {#key artifact.id} {#await artifactView() then ArtifactView}{/await} {/key}
    {/if} {#if displayed}
    {displayed.title}
    {#key `${displayed.entryId}:${displayed.index}`} {#await displayView() then DisplayView}{/await} {/key}
    {/if} {#if commandPanel}
    shell command output
    {#key commandPanel}{#await shellCommandView() then ShellCommandView}{/await}{/key}
    {/if} {#if terminal}
    {terminal.command ? headline(terminal.command, terminal.kind) : 'terminal'}
    {#key terminal.job} {#await terminalView() then TerminalView} terminal && ((terminal.command = found.command), (terminal.kind = found.kind))} />{/await} {/key}
    {/if} {/if} {#if session?.moved} {@const moved = session.moved}

    moved to {moved.host} · {moved.workspace}

    open it there: albedo web on {moved.host}{movedHome ? ` (albedo home ${movedHome})` : ''}

    {:else if pendingHost && (!question || question.hidden)}
    moving to {pendingHost} · checklist pending · this copy stays live here
    {:else if question?.hidden}
    moving to {question.host} · {question.progress}
    {/if} transcript.cancelEdit()} busy={running} commands={offered} locked={session?.moved ? `this session moved to ${session.moved.host}; new messages go to it there` : ''} oncommands={refreshCommands} oncommand={command} onshell={shell} compact={inline} onpopout={inline || popped ? undefined : popout} onstop={stop} attached={going.length} placeholder={going.length ? 'add a message, or just send the notes…' : undefined} />
    {#if inline && shown} {@const open = shown}
    changes
    {#await diffClient() then DiffClient} (shown = { ...open, scope })} jump={open.jump} keyOf={(path, change) => `${windowId}#${path}#${change}`} /> {/await}
    {/if}
    {#if question} {#await cdDialog() then CdDialog}{/await} {/if} {#if held} {#await termsDialog() then TermsDialog}{/await} {/if} {#snippet runLine()} {#if session} {/if} {/snippet} {#snippet tools()} openArtifact({ id: found.id, version: found.version, title: found.title, })} /> onopen?.({ kind: 'job', job })} /> {@render runLine()} {/snippet}