mirror of
https://github.com/GabrielVidal1/ask-form.git
synced 2026-12-01 18:07:27 +01:00
A self-registered machine's 50-form cap counted every form its poll listed,
and a machine lists each form until a week after it expires, closed ones
included. A busy agent (a clarifier per question) filled the 50 slots with
answered forms and could create no more; revoking, which the error message
advised, freed nothing.
- The poll now says which listed forms still wait for an answer
(PollRequest.Open, always sent, [] when none). The relay counts only those
toward --max-forms; closed ones keep routing to their thank-you page under
a new --max-closed (ASK_FORM_RELAY_MAX_CLOSED, default 10 x --max-forms).
A form the machine stops listing gives its slot back at once and its route
after claimTTL. A machine too old to send the list is counted as before,
and its "full" error now says to upgrade.
- Relay health reports `open` next to `forms`.
- `ask-form delete <id>` (DELETE /v1/forms/{id}): forget a form and its
answers; one still waiting is withdrawn first so waiters and the events
feed see it end. `ask-form prune [--closed-for 48h]` (POST /v1/prune):
delete the forms closed that long ago, never one still waiting.
- Docs: how-it-works, self-hosting flag table, the skill's command table.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>