Problem #
The edit-page autosave key hashes the whole server seed, including active. The form neither shows nor submits active, but the server flips it on dry-run expiry, rate limiting, session loss and redundant-automation sync, and so does the pause toggle. After any of these, the draft silently stops restoring, and the user's unsaved edits are lost with no notice.
Evidence #
app/routes/u/[handle]/[rkey]/edit.tsx:71-85passesactive: auto.activeininitial.app/islands/AutomationForm.tsx:autosaveContextincludesinitial, and the form has no other use ofactive.- Writers of
active: false:lib/runtime/dry-run-expiration.ts:27,lib/jetstream/rate-limit.ts:177,lib/jetstream/session-loss.ts:39,lib/sync/redundant-automations.ts:103,115. - Commit 5e1491f (#33).
Expected #
A draft survives server changes to fields the form does not edit. When the seed did change in a field the form edits, the user is told a draft exists, not left with nothing.
Acceptance criteria #
Out of scope #
The blank-form key (separate issue), the scope-upgrade stash's context, and cross-tab sync.
Queued: the loop will work on this version of the issue.
loop:queued cid=bafyreigfleikinnhdymmgmnyqle5hq3cpex27dz3ruobxeiegaucumzlg4