Skip to content
Back

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-screens
Atlas · Start

Good afternoon, Alex

Ask anything, or start from a prompt. Atlas can read the repo, run commands and open PRs.

The code is part of Oxyn Pro

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.

Get Pro

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.

Terminal
oxyn add ai-chat-screens

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Start

Start

Atlas · Start

Good afternoon, Alex

Ask anything, or start from a prompt. Atlas can read the repo, run commands and open PRs.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Overview

Overview

Atlas · Overview

Overview

Your agents

Running cargo test
AtlasRunning tests in auth/
Waiting for you
ScoutNeeds approval: deploy to staging
Worked for 1m 12s
QuillFinished the onboarding copy
Thinking
RelayReading the billing webhooks

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 code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Agents

Agents

Atlas · Agents

Fix the refresh-token race

You14:02

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 code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Double

Double sidebar

Atlas · Double sidebar

Release notes for v0.3

You10:12

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 code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Progress

Progress

Atlas · Progress

Fix the refresh-token race

You14:02

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 code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Run

Run

Atlas · Run

Run 248 · Fix the refresh-token race

Plan6 steps

Fix the refresh-token race

  1. 1.Read the auth middleware8.0s
  2. 2.Wrote a failing test21s
  3. 3.Holding the lock across the refresh31s
  4. 4.Run the auth tests
    waiting on #3
  5. 5.Update the changelog
  6. ⤼6.Bump the session schemaskipped
    no schema change needed
1 more
Delete build artefacts
Outside git · 1.2 GB
▲High risk
$ rm -rf target/ dist/
  • Deletes files that git does not track
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Thread

Agent thread

Atlas · Agent thread

Scout · Audit the billing webhooks

You09:40

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 code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

ChatShell

PropTypeDefaultDescription
railboolDefault::default()Show the narrow app rail (Double sidebar).
threadsVec<(String, String)>Default::default()Thread list rows (title, meta); empty hides the list.
activeusizeDefault::default()Active thread index.
titleStringDefault::default()Header title.
sideOption<Element>Default::default()Side panel.
heightf32520.0Height (px).
childrenrequiredElement—Main column.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabRail, threads, main column, side panel
EnterOpen 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
TransitionDurationEasingReduced motion
Row hover / active--ox-fastlinearinstant
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:0 and its parts wrap or scroll.

Notes for AI

  • Import ChatShell from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: ChatShellEl in oxyn_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.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI