AI Interfaces

2 layouts · 10 components

AI Assistant Workspace

Conversation history, distinct user and assistant bubbles, suggested prompts, and a working composer.

1280px

Checkout reliability review

Online

4 messages · demo mode, no model connected

  1. AK
    You10:02

    Our checkout retries three times and still fails on flaky connections. Can you review the retry strategy in `paymentClient.ts`?

  2. CX
    Coloxo assistant10:02

    The current code retries immediately and reuses the same idempotency key, so a timeout can double-charge before the retry lands. Three changes would help: keep the idempotency key stable per attempt group, back off exponentially with jitter, and stop retrying on 4xx responses since those never succeed on repeat.

  3. AK
    You10:04

    What backoff numbers do you recommend for a payments API?

  4. CX
    Coloxo assistant10:04

    Start at 300 ms and double up to a 5 s ceiling, with ±20% jitter, capped at four attempts. That keeps the worst case near 15 s — inside most gateway timeouts — while jitter stops a fleet-wide retry wave from hitting the provider at the same instant.

Suggested prompts

Demo only — messages stay in this page and are never sent anywhere.

Components used

  • Avatar
  • Badge
  • Button
  • Card
  • Drawer
  • Heading
  • IconButton
  • Input
  • Text
  • Tooltip

Install

npm install @coloxo/ui

The block imports only from @coloxo/ui and lucide-react. Styling uses the package token layer, so no Tailwind setup is required.