Skip to content
Back

ThreadbarPro

Agent apps / Threadbar: a code editor's agent panel as a desktop app. Threads grouped by project, agent threads and terminal threads side by side; the open thread's tool calls (searched, read, edited, ran) and the edit's diff to Keep or Reject; a composer with Profile (Write, Ask, Minimal), Agent (the built-in agent or an outside agent over the agent protocol, with its mark) and Model; a Project pane with Files (a tree with git letters) and Git (stage files, a commit message and Commit).

oxyn add threadbar
Retry failed webhooks with backoffWorking

Webhook deliveries that fail are dropped. Retry them with exponential backoff, at most five tries, and log each attempt.

  1. Searcheddeliver_webhook3 matches in 2 files
  2. Readsrc/webhooks/deliver.rslines 1–88
  3. Editedsrc/webhooks/deliver.rs+18 −4
  4. Rancargo test webhooks12 passed in 4.1 s
src/webhooks/deliver.rs+18−4
 pub async fn deliver(hook: &Hook, body: &[u8]) -> Result<()> {-    let res = client().post(&hook.url).body(body).send().await?;-    res.error_for_status()?;+    for attempt in 0..MAX_TRIES {+        match try_once(hook, body).await {+            Ok(()) => return Ok(()),+            Err(e) => log_attempt(hook, attempt, &e),+        }+        sleep(backoff(attempt)).await;

Running the webhook tests

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

  • Talk to an agent inside a code editor, keep or reject what it changes, switch between agent threads and terminal threads, and commit the result.

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

Threadbar 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 threadbar

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

Sample

Sample data, the main area as an inset card.

Retry failed webhooks with backoffWorking

Webhook deliveries that fail are dropped. Retry them with exponential backoff, at most five tries, and log each attempt.

  1. Searcheddeliver_webhook3 matches in 2 files
  2. Readsrc/webhooks/deliver.rslines 1–88
  3. Editedsrc/webhooks/deliver.rs+18 −4
  4. Rancargo test webhooks12 passed in 4.1 s
src/webhooks/deliver.rs+18−4
 pub async fn deliver(hook: &Hook, body: &[u8]) -> Result<()> {-    let res = client().post(&hook.url).body(body).send().await?;-    res.error_for_status()?;+    for attempt in 0..MAX_TRIES {+        match try_once(hook, body).await {+            Ok(()) => return Ok(()),+            Err(e) => log_attempt(hook, attempt, &e),+        }+        sleep(backoff(attempt)).await;

Running the webhook tests

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

Flat

The same view with the main area edge to edge.

Retry failed webhooks with backoffWorking

Webhook deliveries that fail are dropped. Retry them with exponential backoff, at most five tries, and log each attempt.

  1. Searcheddeliver_webhook3 matches in 2 files
  2. Readsrc/webhooks/deliver.rslines 1–88
  3. Editedsrc/webhooks/deliver.rs+18 −4
  4. Rancargo test webhooks12 passed in 4.1 s
src/webhooks/deliver.rs+18−4
 pub async fn deliver(hook: &Hook, body: &[u8]) -> Result<()> {-    let res = client().post(&hook.url).body(body).send().await?;-    res.error_for_status()?;+    for attempt in 0..MAX_TRIES {+        match try_once(hook, body).await {+            Ok(()) => return Ok(()),+            Err(e) => log_attempt(hook, attempt, &e),+        }+        sleep(backoff(attempt)).await;

Running the webhook tests

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

Loading

Skeletons in the sidebar, the conversation and the pane.

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

Empty

A first run: nothing yet, the composer front and centre.

New thread

Start a thread

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

Terminal

A terminal thread open: the test run's output and a command line that runs what you type.

cargo test --workspaceTerminal
ledger-api $ cargo test --workspace   Compiling ledger-api v0.4.2running 48 teststest webhooks::retries_five_times ... oktest settlement::rounds_half_even ... oktest result: ok. 48 passed; 0 failed; finished in 6.3 s
$

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

X1

Oxyn: the sidebar as a 56 px icon rail; the top bar expands it.

Retry failed webhooks with backoffWorking

Webhook deliveries that fail are dropped. Retry them with exponential backoff, at most five tries, and log each attempt.

  1. Searcheddeliver_webhook3 matches in 2 files
  2. Readsrc/webhooks/deliver.rslines 1–88
  3. Editedsrc/webhooks/deliver.rs+18 −4
  4. Rancargo test webhooks12 passed in 4.1 s
src/webhooks/deliver.rs+18−4
 pub async fn deliver(hook: &Hook, body: &[u8]) -> Result<()> {-    let res = client().post(&hook.url).body(body).send().await?;-    res.error_for_status()?;+    for attempt in 0..MAX_TRIES {+        match try_once(hook, body).await {+            Ok(()) => return Ok(()),+            Err(e) => log_attempt(hook, attempt, &e),+        }+        sleep(backoff(attempt)).await;

Running the webhook tests

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

X2

Oxyn: the sidebar hidden for focus; the top bar brings it back.

Retry failed webhooks with backoffWorking

Webhook deliveries that fail are dropped. Retry them with exponential backoff, at most five tries, and log each attempt.

  1. Searcheddeliver_webhook3 matches in 2 files
  2. Readsrc/webhooks/deliver.rslines 1–88
  3. Editedsrc/webhooks/deliver.rs+18 −4
  4. Rancargo test webhooks12 passed in 4.1 s
src/webhooks/deliver.rs+18−4
 pub async fn deliver(hook: &Hook, body: &[u8]) -> Result<()> {-    let res = client().post(&hook.url).body(body).send().await?;-    res.error_for_status()?;+    for attempt in 0..MAX_TRIES {+        match try_once(hook, body).await {+            Ok(()) => return Ok(()),+            Err(e) => log_attempt(hook, attempt, &e),+        }+        sleep(backoff(attempt)).await;

Running the webhook tests

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

Git

The Project pane on Git: staged files with their line counts, the suggested message and Commit.

Retry failed webhooks with backoffWorking

Webhook deliveries that fail are dropped. Retry them with exponential backoff, at most five tries, and log each attempt.

  1. Searcheddeliver_webhook3 matches in 2 files
  2. Readsrc/webhooks/deliver.rslines 1–88
  3. Editedsrc/webhooks/deliver.rs+18 −4
  4. Rancargo test webhooks12 passed in 4.1 s
src/webhooks/deliver.rs+18−4
 pub async fn deliver(hook: &Hook, body: &[u8]) -> Result<()> {-    let res = client().post(&hook.url).body(body).send().await?;-    res.error_for_status()?;+    for attempt in 0..MAX_TRIES {+        match try_once(hook, body).await {+            Ok(()) => return Ok(()),+            Err(e) => log_attempt(hook, attempt, &e),+        }+        sleep(backoff(attempt)).await;

Running the webhook tests

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

ThreadbarScreen

PropTypeDefaultDescription
layoutString"inset"`inset` or `flat`: the main area as a rounded card on the sidebar's grey, or edge to edge.
stateString"sample"A state key (`sample`, `loading`, `empty`, `terminal` or `git`).
heightu32900Height px (outside a stage).
railboolDefault::default()Oxyn: open with the sidebar as a 56 px icon rail.
sidebar_hiddenboolDefault::default()Oxyn: open with the sidebar hidden (the top bar brings it back).
dataOption<ThreadbarData>Default::default()Your data. `None` shows the sample for `state`; start from `ThreadbarData::default()`.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
EnterSend, or run the command (Shift + Enter for a new line)
← →Move between the Files and Git tabs
EscapeClose the profile, agent, model or account menu

Accessibility

  • The sidebar is a nav landmark; threads sit under their project; the open one carries aria-current=page.
  • The edit is a labelled group with Keep and Reject; the diff marks added and removed lines with + and −, not colour alone.
  • Files and Git are a tablist (roving tabindex, arrow keys); each changed file is a labelled checkbox.
  • Profile, Agent and Model are menus of menuitemradio; every action reports in a polite live region.

Responsive behaviour

  • Authored on the 1440 × 900 canvas: a 272 px sidebar, the conversation and a 440 px pane (380 px under 1180).
  • Under 960 px the sidebar becomes a drawer from the top bar and the pane opens over the conversation from its top-bar button.
  • Under 620 px the chips shorten and the composer and pane keep their actions; labels ellipsise.
Edge cases (spec)

1440 × 900 stage; /full at the real viewport. Under 960 px the sidebar is a drawer and the pane opens over the conversation from the top bar. Under 620 px chip labels shorten and rows stack. scripts/ovl.py finds no text overlap at 1440, 768 and 390 in light and dark.

Notes for AI

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