AI Chat screensPro
The seven AI Chat screens (Start, Overview, Agents, Double sidebar, Progress, Run, Agent thread) composed from the chat, composer, plan, tool and approval parts.
oxyn add ai-chat-screensGood afternoon, Alex
Ask anything, or start from a prompt. Atlas can read the repo, run commands and open PRs.
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Seven ready-made screens for an agent app, so a team starts from a whole page rather than parts:
When not to use
- Mail folders with counts and labels beside a message list: use Inbox sidebar instead.
- The app frame: use App shell instead.
- An assistant docked beside a page: use AI side panel instead.
Installation
AI Chat screens is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add ai-chat-screensUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Start
Start
Good afternoon, Alex
Ask anything, or start from a prompt. Atlas can read the repo, run commands and open PRs.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Overview
Overview
Overview
Your agents
Recent threads
- Fix the refresh-token raceAtlas · running · 4 min
- Release notes for v0.3Atlas · done · 1 h
- Audit the billing webhooksScout · waiting on you
- Onboarding copy passQuill · done · yesterday
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Agents
Agents
Fix the refresh-token race
Why does auth fail at the minute boundary?
The race is in refresh(): two requests read the same expiry, both refresh, and the second write wins with a stale token.
I'll take the lock before reading the expiry and add a 30 s leeway, then rerun the auth suite.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Double
Double sidebar
Release notes for v0.3
Draft release notes for v0.3 from this week's merged PRs.
v0.3 brings the composer parts: voice recording, dictation, mentions, mode and permission controls.
- Faster thread loading
- Fixed the token refresh race
- New terminal tabs
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Progress
Progress
Fix the refresh-token race
Fix the refresh race and keep me posted.
The race is in refresh(): two requests read the same expiry, both refresh, and the second write wins with a stale token.
I'll take the lock before reading the expiry and add a 30 s leeway, then rerun the auth suite.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Run
Run
Run 248 · Fix the refresh-token race
Fix the refresh-token race
- 1.Read the auth middleware8.0s
- 2.Wrote a failing test21s
- 3.Holding the lock across the refresh31s
- 4.Run the auth testswaiting on #3
- 5.Update the changelog
- ⤼6.Bump the session schemaskippedno schema change needed
$ rm -rf target/ dist/
- Deletes files that git does not track
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Thread
Agent thread
Scout · Audit the billing webhooks
Audit the billing webhooks for replay attacks.
Two handlers skip the signature timestamp check. I'll add a 5-minute tolerance and a replay cache keyed on the event id.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ChatShell
| Prop | Type | Default | Description |
|---|---|---|---|
rail | bool | Default::default() | Show the narrow app rail (Double sidebar). |
threads | Vec<(String, String)> | Default::default() | Thread list rows (title, meta); empty hides the list. |
active | usize | Default::default() | Active thread index. |
title | String | Default::default() | Header title. |
side | Option<Element> | Default::default() | Side panel. |
height | f32 | 520.0 | Height (px). |
childrenrequired | Element | — | Main column. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Rail, threads, main column, side panel |
| Enter | Open a thread or send |
Accessibility
- Each screen has nav, main and complementary landmarks.
- Streamed answers announce politely; approvals keep their own keys.
From the spec
Navigation landmarks (“Apps”, “Threads”), a main, and a complementary “Details”. Thread rows are buttons with aria-current. Parts keep their own live regions and keys.
Motion & interaction
Thread rows tint on hover and raise when active. The streamed answer, plan ticks, tool rows and the approval card keep their own motion (see their specs).
Timing
| Transition | Duration | Easing | Reduced motion |
|---|---|---|---|
| Row hover / active | --ox-fast | linear | instant |
| Answer stream (demo) | 60 chars/s | — | full text |
Responsive behaviour
- The side panel and thread list keep fixed widths; the main column flexes.
Edge cases (spec)
- No threads: the thread list is hidden and the main column fills the frame.
- No title: the header is hidden (Start).
- Narrow frames: the side panel and list keep their widths; the main column has
min-width:0and its parts wrap or scroll.
Notes for AI
- Import
ChatShellfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
ChatShellElinoxyn_gpui. - Props to set first:
children. - It reads a clock (
now) for live timers; pass one clock for the whole page rather than one per component. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.