Prompt for unnamed drafts directly before publication

This commit is contained in:
2026-10-10 01:46:08 +01:00
parent 68042aad5d
commit 6bc344dd29
5 changed files with 148 additions and 9 deletions
+4 -2
View File
@@ -85,8 +85,10 @@ Press `d` on the dashboard or use `:drafts` to browse the same retained drafts a
`pipelines drafts`. Use `n/p` to select, `j/k` to scroll source, `e`/Enter to reopen
the existing draft, `v` for server validation, and `s` for submission confirmation.
`r` refreshes the list. Submission preserves create-only/version guards and rejects
drafts belonging to another server. An unnamed draft must be named through OpenCode
or CLI `submit --name`. Draft selection/editor completion never publishes it.
drafts belonging to another server. For unnamed drafts, submission asks you to
type a pipeline name directly in the TUI. Enter saves the name in retained metadata
and opens publication confirmation; it does not publish yet. Esc keeps the draft
without saving unfinished name input. Draft selection/editor completion never publishes it.
On editor exit, the connected TUI checks the authoritative server before asking
to submit. If the draft source is already published (including a newer version
after the draft's base that was subsequently superseded), it skips confirmation