Search
Search components and blocks
A single agent run as a card: a pulsing avatar, a live status and timer, a progress line, and tool-call steps that spin, tick off and expand to show their output.
Refactor agent
Ready · 0.0s
Props
namestring—stepsAgentRunStep[]—stepMsnumber1400classNamestring—A chat-style agent run: a segmented progress rail, steps that open to show their live process while they run, then a final accordion that pauses on a diff for you to approve or reject.
- ›Charge happens in the payments retry path
- ›Checking how retries build the gateway request
- ›Plan: search → read → patch
- ›$ rg idempotencyKey src/
- ›3 matches in 2 files
- ›Only src/payments/retry.ts creates the key
- ›Opened src/payments/retry.ts
- ›Reading chargeWithRetry (lines 36–47)
- ›Comparing the key across attempts
- ›Every retry generates a different key
Line 40 creates a new key inside the loop, so every attempt after a timeout looks like a brand-new charge. The key belongs to the order, not the attempt: create it once, before the loop, and reuse it.
src/payments/retry.ts
Props
promptstring—stepsApprovalStep[]—filenamestring—diffApprovalDiffLine[]—classNamestring—When to use the agent run
Use the agent run card to show one run in progress: a live status and timer, a progress line, and tool-call steps that spin, tick off and expand to show output.
Open the CLI tab on any preview above for the exact shadcn command. The source is copied into your project, so you can edit it like any other file.