fix(pets): make inline generate cancel discard draft flow

Wire the sparkle generate button's cancel action to the same discard/reset path as step-2 cancel so abort semantics are consistent and always return to step 1 while retaining the prompt input.
This commit is contained in:
Brooklyn Nicholson 2026-06-24 19:33:33 -05:00
parent 592c462e3c
commit 2ea94c6c45

View file

@ -210,7 +210,9 @@ export function PetGenerateContent() {
generating={generating}
generatingLabel={t.common.cancel}
label={copy.generate}
onCancel={cancelGenerate}
// Inline cancel should match step-2 cancel semantics: abort and
// return to step 1 (prompt retained for quick tweaks).
onCancel={discardDrafts}
onGenerate={generate}
/>
</div>