Keep what was typed when a target or webhook edit is refused (closes #381) #474

Merged
clawbot merged 1 commits from issue-381-edit-pages-keep-input into next 2026-10-03 00:51:56 +02:00
1 Commits
Author SHA1 Message Date
clawbot 2d2d5f6e20 Keep what was typed when a target or webhook edit is refused (closes #381)
check / check (push) Waiting to run
A refused save on the target edit page now shows the edit form again,
with the reason above it and every value submitted, instead of a bare
text page; the status codes are unchanged. The webhook edit page keeps
the submitted name, description and retention the same way, while the
page still reports the stored retention.

Target edits are validated by setTargetFromForm, which newTarget now
uses too, so the add and edit forms accept and refuse the same things.
An empty max_retries keeps the target's own count.

The browser test also saves both edit pages with refused values. Its
seeding and its table of target types move into helpers, leaving the
test function a plain list of check calls.

Model: opus-5-5
2026-10-02 22:41:28 +00:00