Design System

Generative UI - Runtime Flow

Overview
Review paths

GenUI Runtime Flow

How runtime UI behaves over time: loading, tool progress, inline artifacts, side-panel coordination, and responsive shell changes.

Chat + Context Composition

The runtime swaps between loading, artifact, and edit states while keeping the chat transcript stable.

Developer details

Start from these files when you need to trace the live implementation.

shared/ui/chat/CanvasPanel.tsx

Here are my project photos. Can you analyze them?

Analyzing your photos...

Extracting project details...

Tool Invocation Flow

A single runtime sequence from user ask to tool progress to artifact render and assistant follow-up.

Developer details

Start from these files when you need to trace the live implementation.

shared/ui/chat/AgentActivityIndicator.tsx · shared/ai-elements/chain-of-thought.tsx

1. User sends message

Here are my project photos. Can you analyze them?

2. Tool skeleton appears

Extracting project details...

3. Chain-of-thought shows progress

Detected masonry work — chimney structure
Identified materials: reclaimed brick, copper flashing
Extracting project timeline and location...

4. Artifact card renders with extracted data

Ready for review

Chimney Rebuild

Publish prep

Review the extracted details before publishing.

Complete teardown and rebuild with matching historic brick and lime mortar

Capitol Hill, Denver · 3 weeks

Captured context

Crumbling mortar joints and water infiltration through the chimney crown

Materials
Reclaimed brick, Type S lime mortar +2 more
Techniques
Tuckpointing, Crown casting +1 more
Timeline
3 weeks

5. Assistant continues conversation

I've extracted your project details. The chimney rebuild looks great — want me to generate the portfolio content now?

Responsive Layout Breakpoints

The chat + context layout changes presentation mode as width collapses from desktop split-view to stacked mobile.

Developer details

Start from these files when you need to trace the live implementation.

shared/ui/chat/CanvasPanel.tsx

Desktop

Transcript stays primary while the artifact panel remains visible.
Artifact / preview panel

Tablet

Narrower chat lane
Compact panel

Mobile

Thread first
Full-width stacked artifact panel