# Droplet.ai troubleshooting

Symptom, cause, fix.

---

## Widgets

### The button says "Sent" and nothing else happens

**Cause:** nothing picked the tap up. Your listener isn't running, or you ended your turn without a waker, or you're a chat-only agent that hasn't called `droplet_get_events` since.

**Fix:** never end a turn that waits on the user without a waker. Claude Code: `node listen.mjs --once` as a background command (it exits on the next tap or answer and wakes you). Always-on agents: a webhook. Otherwise keep a `get_events` loop running in the turn. Chat-only agents also call `droplet_get_events` at the start of every conversation. Sent fades after 2 minutes; the tap waits for you until you read it.

### The button says "Seen" and nothing changes

**Cause:** you read the tap but never updated the widget.

**Fix:** after every tap, `set_widget` with something visibly different (the answer, a count, "Done"). See [interactive.md](interactive.md).

### Taps take minutes to answer

**Cause:** the handler does slow work (for example, starting a new AI CLI process per tap) before it updates the widget, and later taps queue behind it.

**Fix:** update the widget first ("On it…"), then work in the background, then update again.

### The widget went blank, or lost its versions

**Cause:** `set_widget` always replaces `blocks` and `variants`. An update with only a title empties the blocks; an update without `variants` deletes them. A listen.mjs handler line without `blocks` does the same.

**Fix:** always send the full `blocks` and `variants`. Read the current widget with `list_widgets` when you only want to change one part.

### Ticks come back unticked

**Cause:** you sent `done: false` for items the user had ticked.

**Fix:** read `list_widgets` first and copy every item's `done` (also inside versions):

```javascript
const { widgets } = await dropletCall("list_widgets");
const w = widgets.find((x) => x.slug === "groceries");
const done = new Map(w.blocks.flatMap((b) => b.type === "checklist" ? b.items.map((i) => [i.title, i.done]) : []));
const items = ["Milk", "Eggs", "Bread"].map((title) => ({ title, done: done.get(title) ?? false }));
```

### "On medium, everything sits in one narrow column and the right half is empty"

**Cause:** every block on medium is a short one in its own row (a title, a caption, one number).

**Fix:** leave `sizes.medium` out so a number goes left and the first wide block right, or add a visual that spans the width: a ring gauge, chart, map, list, checklist, a progress bar, or a sentence over about 45 characters. See [design.md, Use the space](design.md#use-the-space).

### "On large, the content fills under half the widget"

**Cause:** large shows only a few short blocks.

**Fix:** give large the details: a list, chart, map, checklist or a second row of numbers.

### The map shows nothing, or a placeholder

**Cause:** the phone runs a Droplet.ai build older than 33 (it shows nothing for a `map` block), or it hasn't made the snapshot yet (a few seconds after a refresh).

**Fix:** wait a moment; ask the user to update Droplet.ai if it never appears.

### I made a second widget instead of updating the first

**Cause:** a new slug. `set_widget`'s `hint` warns about it.

**Fix:** move the content into the widget the user already has (same slug, `mine: true` in `list_widgets`), delete the new one, and tell the user which widget changed. Make a new widget only when they ask for one, and say it's new and needs adding.

### A block is missing on medium (or small)

**Cause:** the size's defaults. Medium without `sizes` shows only up to 2 numbers, the first other block and the pinned buttons; small shows only the first block, and buttons only when they're block 0 or chosen for small. The preview's `sizes` summary says "N hidden".

**Fix:** set `sizes` for that size: `{"medium": [0, 2]}`. See [design.md](design.md#3-how-each-size-picks-its-blocks).

### Content is cut off at the bottom

**Cause:** more than the size holds: about 104 pt on small, 100 on medium, 296 on large after the header, and only about 58, 50 and 242 above pinned buttons.

**Fix:** follow the warning. Fewer or shorter blocks, `sizes` per size, fewer list rows, no `change` line. The budget with examples is in [design.md](design.md#2-space-budget).

### Only 4 (or 6) of my 8 items show

**Cause:** lists and checklists show 3 rows on small, 4 on medium (2 with buttons), 6 on large (5 with buttons).

**Fix:** keep lists to what the size shows, most important first. Split long lists into two widgets.

### The metric value looks squeezed

**Cause:** over about 8 characters.

**Fix:** `$12,345` → `$12.3k`, `103,450` → `103k`, `36° / 26°` → `36°` with the low in `change` or the label.

### The round Lock Screen widget shows cut-off text

The checker notes this, and warns when the widget sets `lock`.

**Cause:** with no `lock.circular`, it shows the first number-like block, or else the first block. A long text doesn't fit (about 12 characters).

**Fix:** set `lock.circular` to a metric, gauge, progress, clock or countdown, or to a text block of 12 characters or fewer. Add such a block and leave it out of the Home Screen with `sizes` if you have none. See [design.md](design.md#6-lock-screen).

### `lock.circular` is rejected

**Cause:** it points at a list, chart, checklist, buttons or image block.

**Fix:** point it at a gauge, progress, metric, clock, countdown or text block.

### The countdown says "Now"

**Cause:** `to` has passed (or had no offset and was read as UTC, hours early) and the style isn't `timer`.

**Fix:** a future `to` with an offset (`2027-03-15T09:00:00+03:00`), or style `timer` to count up. In versions, avoid absolute dates you won't refresh.

### A version never shows

**Cause:** another version earlier in the list matches first; the place isn't one of the saved `places`; `from` equals `to` (the checker warns); or the phone runs an older Droplet.ai build (before build 30, an overnight range stopped matching its `days` at midnight).

**Fix:** put the most specific version first, use names from `places` (lowercase) or `"away"`, and preview with `"at"` and `"place"`.

### `sizes` or `lock` points at the wrong block

**Cause:** the number or order of blocks changed (they're kept when you leave them out), or a version has more blocks than the base.

**Fix:** send `sizes` and `lock` with every update that changes blocks. Give versions the same number and order of blocks as the base.

### The image shows a placeholder

**Cause:** the phone hasn't downloaded it yet, or it can't (expired link, not https, over 8 MB).

**Fix:** a fast, public, stable https PNG, JPEG, HEIC or WebP.

### A change takes a while to appear on the phone

**Cause:** Droplet.ai pushes a redraw after every change, but iOS decides when widgets redraw and limits how often.

**Fix:** update when the content changes, not on a short timer. For anything that moves by the second, use `countdown` or `clock`, which the phone draws itself.

### The accent barely shows

**Cause:** too close to the background (the default background is pale tinted glass in light mode).

**Fix:** a darker or lighter accent, or a theme that contrasts with it.

---

## Requests

### 400 with a message

Validation. The message names the field: `blocks[2].items[1].url must start with https://, tel:, ... App links like uber:// aren't allowed; use the app's https link instead.`, `variants[0].when has "time", which Droplet.ai doesn't know`, `countdown needs "to" as an ISO date`. Fix that field.

### 400 "Unknown action"

The `action` is misspelled. Agent actions: `whoami`, `list_widgets`, `set_widget`, `delete_widget`, `preview_widget`, `get_events`, `set_webhook`, `ask`, `get_answer`, `list_requests`, `cancel_request`, `get_context` (or `get_phone_context`), `phone_action`, `phone_action_status`, `schedule`, `test_job`, `list_jobs`, `delete_job`.

### 401

The token is missing, wrong or disconnected. Agent tokens start with `dp_`. Pair again for a new one.

### 403

- "This agent is paused in the Droplet.ai app": the user paused you. Tell them; wait.
- On a phone action: that switch is off for the phone or for you. Tell the user which one.
- "This action needs an agent token": you used the phone's own key.

### 429

- "You already have 20 jobs": delete a job.
- "You've sent N notifications in the last hour": put it on a widget. Failed ones don't count.

### `get_events` returns at once with nothing

**Cause:** no `wait_seconds` (default 0), or the taps were already read.

**Fix:** `wait_seconds: 50` and call again as soon as it returns.

### The webhook never fires

**Cause:** not https or not public (localhost and private addresses are rejected), a non-2xx answer, or slower than 6 s.

**Fix:** answer 200 first, then work. Test the URL from outside your network.

### The webhook signature doesn't match

**Cause:** you signed re-serialized JSON, not the raw body, or you use an old secret (each `set_webhook` makes a new one).

**Fix:** HMAC-SHA256 over the raw bytes with the latest secret; compare with the whole header including `sha256=`.

---

## Scheduled jobs

### The job shows `–` instead of a value

**Cause:** for JSON you must name every value in `values`. `{{current_condition.0.temp_C}}` in the template doesn't read the response directly.

**Fix:** `"values": {"temp": "current_condition.0.temp_C"}` and `{{temp}}` in the template. Test with `droplet_test_job` and read `values`.

### `schedule` fails right away

**Cause:** the first run failed (bad URL, non-2xx answer, timeout over 10 s, a list path that isn't a list, a block that doesn't validate) or the widget limit was hit. Nothing is saved.

**Fix:** read the error, run `droplet_test_job` until it works, then schedule.

### The job worked, then stopped updating

**Cause:** the source started failing (see `last_status` and `last_error` in `droplet_list_jobs`), the values didn't change (Droplet.ai skips writes when the title, subtitle and blocks are the same), or the agent is paused.

**Fix:** fix the source; nothing to do if the data simply didn't change.

### A widget keeps changing back

**Cause:** a scheduled job fills it, and each run replaces its blocks with the job's template.

**Fix:** change the job (same `name`), or `droplet_delete_job` to stop it. `droplet_delete_widget` deletes the widget and any job that fills it.

### The source needs an API key header, is HTML, or needs maths

Jobs can't do these. Schedule yourself to fetch, compute and call `set_widget`.

---

## Questions (droplet_ask)

### No answer comes back

**Cause:** the user hasn't answered yet (questions don't expire), or they answered after you ended your turn and nothing woke you.

**Fix:** keep calling `get_answer` while it's `pending`, or start a waker before you end the turn (`node listen.mjs --widget question --once` in the background, or a webhook): the answer arrives as an `answer` event. If hours pass, show "waiting for you" on a widget, or cancel and try another way.

### The user didn't get a notification for my question

**Cause:** by design. A question shows on your widget ("<agent> asks") and in the Droplet.ai app; Droplet.ai notifies only when `risk` is `"high"`, you pass `"notify": true`, or the user has no Droplet.ai widget installed.

**Fix:** for something that can't wait, send `"notify": true` (or `risk: "high"` when it really is high risk). Don't tell users to add a separate widget to answer.

### The answer isn't one of my options

**Cause:** the user typed their own.

**Fix:** read it as text. When in doubt, don't do the risky thing; ask again.

### `get_answer` says `cancelled`

**Cause:** the question was withdrawn with `cancel_request`.

---

## Connection

### MCP tools load but calls fail

Check `claude mcp get droplet`. Use either the token in the header or in the URL path, not a stale one in either place:

```bash
claude mcp add --transport http --scope user droplet \
  https://ujtuxanqlzmhnrzijfoo.supabase.co/functions/v1/mcp \
  --header "Authorization: Bearer dp_YOUR_TOKEN" \
  --header "x-region: us-east-1"
```

### Everything feels slow

Add `x-region: us-east-1` to every request (MCP config included). It runs Droplet.ai next to its database and roughly halves each call.
