Friendlier recovery when issue/mr create fails
Describe the feature or problem you'd like to solve
When glab mr create
fails or cancelled, the body content typed using the editor is lost.
Sometimes the user may type a long MR description and just lose it due to a simple mistake, such as not adding any commit to the MR branch yet (e.g., when creating draft MRs).
Propose a Solution To me, the best user experience would be if the person can just resume where they left off so whenever someone authors an MR or issue, we save their title & body in a file scoped to that repository.
If the create operation succeeded, we delete the file. Otherwise, the save file stays on disk and is used to pre-fill the next issue/mr
create invocation, which is most likely a retry after a server or validation failure.
Or instead of prefilling, we provide --recover
flag to continue from the last session
Additional context