[ Blocks Control Plane ]

Every agent, every session, one control plane.

Blocks is where your team watches, steers and governs every coding agent, whether the work came from Slack, a ticket, a pull request or an automation. In the browser, the desktop app or on your phone.

A
Pinned
Migrate billing to Stripe v2
Nightly critical-bug hunt
Q4 launch checklist
Folders
Payments6
Fix race in checkout test
Fix double charge on checkout retry
Platform11
Recents
Upgrade Next.js to 16
Flaky e2e on /settings
Add audit log export
Review #2214 Rate limiter
Dark mode for the docs site
Rotate the webhook secret
Explain the billing retry flow
Fix double charge on checkout retry
maya@acme.dev
Customers on flaky networks are getting charged twice when checkout retries. Find it in acme/payments and open a PR.
9:41 AM
Worked for 6m 12s

Fixed. retryCharge() sent a new request on every attempt, so Stripe couldn't tell it was the same payment. Each checkout now reuses one idempotency key.

  • Derive the key from the checkout id in charge.ts
  • New regression test. All 214 tests pass.
9:47 AM
3 files changed
maya@acme.dev
The cart total can change between retries. Cover that too.
9:52 AM
Readsrc/checkout/retry.ts
Editedsrc/checkout/retry.ts
Rannpm test -- retry
Send a message
Accept edits on Claude Code claude-opus-5-5
Actions
Open VSCode
Pull Requests1
payments#482Fix double charge on checkout retry+48 −12
Plans1
PLAN.md
just now
CPU31% / 8 vCPU
Memory6.2 GB / 15.5 GB
Workspace4.8 GB / 27.1 GB
/tmp312 MB / 7.8 GB
Network↓ 120 KB/s↑ 48 KB/s
Details
AgentClaude Code
OriginSlack
Created bymaya@acme.dev
Created12 minutes ago
VisibilityVisible to everyone
Related sessions2
Ready for review
#2207 Fix race in checkout test
Blocks3
[ What it does ]

Watch, steer and govern.

Pinned
Migrate billing to Stripe v2
Nightly critical-bug hunt
Folders
Payments56
Fix checkout race
Idempotent retries
Recents
Add audit log export
Upgrade Next.js to 16
Review #2214 Rate limiter
Flaky e2e on /settings
Dark mode for the docs site
Explain the billing retry flow
Rotate the webhook secret

Every session, wherever it started.

Slack threads, tickets, pull request reviews and automation runs land in one list. Pin what you're watching, file the rest in folders and find anything with ⌘K.

[ Desktop app ]

Your control plane, on your desktop.

Blocks Desktop is the whole control plane in a native app for macOS, Windows and Linux. Same sessions, same settings, signed in once.

One ⌘Tab away

Its own window and dock icon, so your agents aren't lost among browser tabs.

Know when you're needed

Hear about a session that finished, failed or is waiting on you, without watching it.

Links open in the app

Session links from Slack, Linear or GitHub open straight in Blocks Desktop.

[ Mobile ]

Your agents, in your pocket.

The control plane works in your phone's browser. Check on a session, answer a question, open the pull request and watch its checks, from wherever you are.

Follow along. The same live session as on your desktop, laid out for a phone.

Step in. Reply, steer or stop the agent from the composer.

Ship it. Open the pull request and watch the checks go green.

Fix double charge on checkout retry
maya@acme.dev
Customers on flaky networks are getting charged twice when checkout retries. Find it in acme/payments and open a PR.
9:41 AM
Worked for 6m 12s

Fixed. retryCharge() sent a new request on every attempt, so Stripe couldn't tell it was the same payment. Each checkout now reuses one idempotency key.

  • Derive the key from the checkout id in charge.ts
  • Pass it on every retry in retry.ts
  • New regression test. All 214 tests pass.
9:47 AM
Pull request
payments#482Fix double charge on checkout retry+48 −12
maya@acme.dev
The cart total can change between retries. Cover that too.
9:52 AM
Read 1 file, edited 1 file, ran 1 command
Readsrc/checkout/retry.ts (L30-80)
Editedsrc/checkout/retry.ts
Rannpm test -- retry
Working for 0:48 - esc to interrupt
Send a message
Accept edits on Claude CodeClaude Opus 5.5
Actions
Open VSCode
Pull Requests1
payments#482Fix double charge on checkout retry+48 −12
just now
CPU31% / 8 vCPU
Memory6.2 GB / 15.5 GB
Workspace4.8 GB / 27.1 GB
/tmp312 MB / 7.8 GB
Network↓ 120 KB/s↑ 48 KB/s
Details
AgentClaude Code
OriginSlack
Created bymaya@acme.dev
Created12 minutes ago
VisibilityVisible to everyone
ArchivedNo
Session IDc3f1a9e2-7b4d-4e0a-9f6c-2d8b1e5a7c40
WorkspaceAAcme
#482 acme/payments
Fix double charge on checkout retry
blocks/fix-checkout-retry main
Open PR
Files3+48-12Commits3ChecksDescriptionComments2
All changes 3 files+48−12 Collapse allRefresh
retry.tssrc/checkout+18−9Viewed
35 unmodified lines
3636 export async function retryCharge(checkout: Checkout) {
3737 const attempts = backoff({ max: 4, base: 250 });
38- for await (const _ of attempts) {
39- const res = await stripe.charge(checkout.total);
38+ // One key per checkout, so Stripe dedupes the retries.
39+ const key = idempotencyKey("charge", checkout.id);
40+ for await (const _ of attempts) {
41+ const res = await stripe.charge(checkout.total, { key });
4042 if (res.ok) return res;
4143 if (!isRetryable(res.error)) throw res.error;
4244 }
4345 throw new RetryExhausted(checkout.id);
4446 }
retry.test.tstest+24−0Viewed
1+import { retryCharge } from "../src/checkout/retry";
2+
3+test("retries reuse one idempotency key", async () => {
4+ const stripe = flakyStripe({ failFirst: 2 });
[ Settings ]

Change it once. Every session picks it up.

Members, agents, skills, MCP servers and sandboxes live in the control plane, and apply to every session wherever it starts: Slack, a pull request, an automation or the desktop app.

Workspace

Members, roles, permissions, billing and budgets

Agents

Agents, profiles, subagents, your own keys and subscriptions

Customization

Global configuration repo, skills and MCP servers

Sandboxes

Repositories, setup scripts, environment variables, commit authors

Integrations

GitHub, GitLab, Bitbucket, Slack, Linear, Jira, Sentry and more

Access

API keys, connected accounts, SSO and SAML on request

Run every agent from one place.

Download the desktop app or start in the browser. Your sessions and settings follow you.

Blocks Control Plane – Every agent, every session, one place