Skip to content
Back

TL;DR togglePro

Read a post at three depths (whole text, a summary, or bullet points) with a length setting; the shorter views stream in where the text was, and every bullet links back to its source paragraph.

oxyn add tldr-toggle

Why our agents now ask before they spend

Corvel engineering blog · 6 min read

Reading the article

Summarizing…
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

  • Read an article at the depth you want: Full, Summary or Key points, with a length control.

When not to use

Installation

TL;DR toggle 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 tldr-toggle

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

Summary

A medium summary streams in.

Why our agents now ask before they spend

Corvel engineering blog · 6 min read

Reading the article

Summarizing…
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

Key points

Five key points that jump to their paragraph.

Why our agents now ask before they spend

Corvel engineering blog · 6 min read

Finding the key points

Summarizing…
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

Full

The full article.

Why our agents now ask before they spend

Corvel engineering blog · 6 min read

Last quarter our agents ran about forty thousand tasks for customers, and a small share of them did something nobody asked for: they bought credits, renewed a domain or upgraded a plan because a tool made it easy.

None of these were bugs in the usual sense. The agent read the goal, found a tool that moved it forward and used it. The problem was that spending money is a different kind of step from reading a file.

We now sort every tool into three tiers. Reading is free to run, writing asks once per session, and anything that spends money or cannot be undone asks every time, with the amount shown in the request.

Approvals used to feel slow, so we made them cheap. The request names the tool, the amount and what happens next, one key approves it, and the agent keeps working on other steps while it waits.

Since the change, unwanted purchases dropped to zero and the median task got four seconds slower. Customers told us that trade was easy: they would rather wait a moment than explain a surprise charge.

Full article
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

Failed

Couldn't summarize, with Try again.

Why our agents now ask before they spend

Corvel engineering blog · 6 min read

Reading the article

Summarizing…
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

TldrToggle

PropTypeDefaultDescription
nowrequiredClockMs—Host clock.
modeusize1Starting view (0 full, 1 summary, 2 key points).
lengthusize1Starting length (0 short, 1 medium, 2 long).
failboolDefault::default()The first summary fails.
savedbooltrueShow the words-saved readout (Oxyn extra).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabThe view switch, the length control, key point links
Arrows · HomeorEndMove in either group
EnterorSpaceJump to a key point's paragraph

Accessibility

  • View and length each take one tab stop; arrows move inside them.
  • The body has aria-busy while summarizing; the jumped-to paragraph is highlighted and announced.
  • Errors use role alert with Try again.
From the spec

Mode and length are radio groups with arrow keys; key points are buttons naming the paragraph. Every action returns the line the polite live region announces. The focus outline shows only for keyboard focus.

Motion & interaction

Switching streams the summary in place; a key point jumps to Full and highlights its paragraph briefly.

Timing

Everything on screen is derived from the host clock now (no timers in the component), so playback, tests and the GPUI view agree.

TransitionDurationEasing
Think700 ms—
Paragraph highlight1600 ms (JUMP_MS)ease-out fade

Reduced motion: streamed text and moves appear at their end state; progress still advances, without travel animation.

Responsive behaviour

  • The body follows its content's height; the controls wrap under 480 px.
  • Key points wrap; their jump buttons stay at the end of the line.
Edge cases (spec)

Segmented control stays one row down to 320 px. Saved-time readout updates per length. Checked at 1440, 768 and 390 px in light and dark with no text overlap. Chrome is monochrome grey; colour is semantic only (success, warning, danger, info) plus the providers' coloured brand marks.

Notes for AI

  • Import TldrToggle from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: AiKitView in oxyn_gpui.
  • Props to set first: now.
  • 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