Approval GatesPro
Every approval request of a run as a stack: the one to decide now on top with who asks, what exactly and why, its input or diff; approve, change it first or reject, and it drops into the Decided list while the next rises. Open gates say how many steps they hold.
oxyn add approval-gatesto: list:spring-2026 subject: Spring is here 🌱 send_at: now
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
- All approval requests of an agent run in one block: open gates form a stack with the one to decide now on top (who asks, kind, what exactly, why, its input or diff, how many steps it holds), and decided gates move into a Decided list with their outcome.
- Approve, Change (edit the input, then approve) or Reject.
- While the run is live and nothing is open the block reads Running.
When not to use
- An agent asks before it acts: use Approval Card instead.
- Several open requests in one card: use Approval pager instead.
- An agent's question in its own card above the composer: use Decision Card instead.
Installation
Approval Gates 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 approval-gatesUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Stack
Three open gates; the message send on top.
to: list:spring-2026 subject: Spring is here 🌱 send_at: now
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
File
A file change with its diff on top.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Decided
Everything decided: Approved, Edited, Rejected.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Idle
Nothing open and the run is over.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ApprovalGates
| Prop | Type | Default | Description |
|---|---|---|---|
gatesrequired | Gates | — | Gates of the run. |
title | String | "Approvals" | Heading. |
decided | bool | true | Show the Decided list. |
on_decide | EventHandler<(String, GateDecision)> | — | A gate was decided. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| ⌘/CtrlEnter | Approve the top gate |
| Tab | Reject, Change, Approve |
Accessibility
- A section named Approvals; the waiting count and held steps are text in the header.
- The peeking cards behind the stack are aria-hidden; only the top gate is interactive.
From the spec
- section named by the title; status line is text.
- Peeking layers are aria-hidden; only the top gate is focusable.
Motion & interaction
Timing
- Top card rises in (translateY 8 px, scale .98 → 1, 280 ms); decided rows fade in.
- Reduced motion: no rise, rows appear.
Responsive behaviour
- Max 520 px; the decided rows truncate the action and keep the outcome.
Edge cases (spec)
- Max 520 px; decided rows truncate the action and keep the outcome visible.
Notes for AI
- Import
ApprovalGatesfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
ApprovalGatesElinoxyn_gpui. - Props to set first:
gates. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.