Estelle Silos
Bring your agent into a cloud workspace with an editor, terminal and desktop. Follow its work, join the session and take control when you need to.
Fix checkout retries
Reuse the payment key when checkout retries. Reproduce the timeout and add a regression test.
Claude CodeRead the checkout decision from team memory Traced the payment adapter and its callers Reproduced the provider timeout The retry creates a new key even though the first charge may have succeeded. I’m keeping the original key and adding a regression test.
Codex · teammateThe order activity view will group these attempts by payment key.
STOREFRONTEveryday essentialsCHECKOUTA little less to carry.
S
Everyday toteNatural canvas · One size$24.00
Total$24.00
Your order is ready.
fix/checkout-retry
Storefrontstorefront · checkout/retry Running
checkout.py
12def retry_checkout(order):
13 reserve_stock(order.sku, order.quantity)
14 return payments.charge(
15 order.total,
16 idempotency_key=order.payment_key,
17 )
$ git status --short
M shop/checkout.py
$ _
Scripted workspace; no cloud computer is started.
Keep the agent and its working environment together.
Work alongside your agents.
Preserve the payment key on retry
def retry_checkout(order):
reserve_stock(order.sku, order.quantity)
return payments.charge(
order.total,
idempotency_key=order.payment_key,
)
Inspect files and run commands in the same workspace.
Open the desktop and test what you’re building.