{#if lines.length === 0}
Waiting for Claude... Type a message below to start!
{:else}
{#if windowStart > 0}
↑ {windowStart} older {windowStart === 1 ? "message" : "messages"} — scroll up to load
{/if}
{#each visibleLines as line (line.id)}
{#if line.type === "thinking"}
{#if showThinking}
{/if}
{:else if line.type === "tool"}
{:else}
{formatTime(line.timestamp)}
{#if line.parentToolUseId}
{/if}
{#if line.cost && line.cost.costUsd > 0}
${line.cost.costUsd < 0.01
? line.cost.costUsd.toFixed(4)
: line.cost.costUsd.toFixed(3)}
{/if}
{#if getLinePrefix(line.type)}
{getLinePrefix(line.type)}
{/if}
{#if line.type === "compact-prompt"}
{:else if line.type === "assistant" || line.type === "user"}
{:else}
{/if}
{/if}
{/each}
{/if}