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 threadbarWebhook deliveries that fail are dropped. Retry them with exponential backoff, at most five tries, and log each attempt.
- Searcheddeliver_webhook3 matches in 2 files
- Readsrc/webhooks/deliver.rslines 1–88
- Editedsrc/webhooks/deliver.rs+18 −4
- Rancargo test webhooks12 passed in 4.1 s
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 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
- 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.
oxyn add threadbarUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Sample
Sample data, the main area as an inset card.
Webhook deliveries that fail are dropped. Retry them with exponential backoff, at most five tries, and log each attempt.
- Searcheddeliver_webhook3 matches in 2 files
- Readsrc/webhooks/deliver.rslines 1–88
- Editedsrc/webhooks/deliver.rs+18 −4
- Rancargo test webhooks12 passed in 4.1 s
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 preview is free. Pro opens the code of every Pro component, screen and template.
Flat
The same view with the main area edge to edge.
Webhook deliveries that fail are dropped. Retry them with exponential backoff, at most five tries, and log each attempt.
- Searcheddeliver_webhook3 matches in 2 files
- Readsrc/webhooks/deliver.rslines 1–88
- Editedsrc/webhooks/deliver.rs+18 −4
- Rancargo test webhooks12 passed in 4.1 s
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 preview is free. Pro opens the code of every Pro component, screen and template.
Loading
Skeletons in the sidebar, the conversation and the pane.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Empty
A first run: nothing yet, the composer front and centre.
Start a thread
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Terminal
A terminal thread open: the test run's output and a command line that runs what you type.
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 preview is free. Pro opens the code of every Pro component, screen and template.
X1
Oxyn: the sidebar as a 56 px icon rail; the top bar expands it.
Webhook deliveries that fail are dropped. Retry them with exponential backoff, at most five tries, and log each attempt.
- Searcheddeliver_webhook3 matches in 2 files
- Readsrc/webhooks/deliver.rslines 1–88
- Editedsrc/webhooks/deliver.rs+18 −4
- Rancargo test webhooks12 passed in 4.1 s
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 preview is free. Pro opens the code of every Pro component, screen and template.
X2
Oxyn: the sidebar hidden for focus; the top bar brings it back.
Webhook deliveries that fail are dropped. Retry them with exponential backoff, at most five tries, and log each attempt.
- Searcheddeliver_webhook3 matches in 2 files
- Readsrc/webhooks/deliver.rslines 1–88
- Editedsrc/webhooks/deliver.rs+18 −4
- Rancargo test webhooks12 passed in 4.1 s
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 preview is free. Pro opens the code of every Pro component, screen and template.
Git
The Project pane on Git: staged files with their line counts, the suggested message and Commit.
Webhook deliveries that fail are dropped. Retry them with exponential backoff, at most five tries, and log each attempt.
- Searcheddeliver_webhook3 matches in 2 files
- Readsrc/webhooks/deliver.rslines 1–88
- Editedsrc/webhooks/deliver.rs+18 −4
- Rancargo test webhooks12 passed in 4.1 s
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 preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ThreadbarScreen
| Prop | Type | Default | Description |
|---|---|---|---|
layout | String | "inset" | `inset` or `flat`: the main area as a rounded card on the sidebar's grey, or edge to edge. |
state | String | "sample" | A state key (`sample`, `loading`, `empty`, `terminal` or `git`). |
height | u32 | 900 | Height px (outside a stage). |
rail | bool | Default::default() | Oxyn: open with the sidebar as a 56 px icon rail. |
sidebar_hidden | bool | Default::default() | Oxyn: open with the sidebar hidden (the top bar brings it back). |
data | Option<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
| Key | Action |
|---|---|
| Enter | Send, or run the command (Shift + Enter for a new line) |
| ← → | Move between the Files and Git tabs |
| Escape | Close 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
ThreadbarScreenfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
ThreadbarElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.