Offer nvim or OpenCode when creating a pipeline
This commit is contained in:
+11
@@ -64,6 +64,17 @@ Every submission, including agent-issued `submit`/`rpc`, still uses server valid
|
||||
|
||||
## Drafts in the TUI
|
||||
|
||||
Home's `n` / `:new` and Enter on a template first ask how to author the new
|
||||
pipeline: **nvim** opens a retained Markdown draft file, or **OpenCode** opens
|
||||
the collaborative harness with `@pipelines`. Tab/Shift+Tab or arrows select;
|
||||
typing fuzzy-searches the choices; Enter launches and Esc cancels without
|
||||
creating a draft. The choice overrides `VISUAL`/`EDITOR`. New drafts preserve
|
||||
the create-only publication guard and still require explicit submission unless
|
||||
you already published them from OpenCode. OpenCode can ask for a missing name;
|
||||
for an unnamed nvim draft, `pipelines submit <draft.md> --name NAME` names and
|
||||
publishes it. CLI `pipelines new` retains its existing direct-OpenCode behavior;
|
||||
`--no-open` creates the file without launching an editor.
|
||||
|
||||
Press `d` on the dashboard or use `:drafts` to browse the same retained drafts as
|
||||
`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.
|
||||
|
||||
@@ -104,3 +104,9 @@ saves changes and still requires confirmation. A real local V2 no-inference
|
||||
create/wait/delete contract succeeded; the reported remote planner `/wait` failure
|
||||
could not be reproduced here. Safe CLI failure classification/exit-code reporting
|
||||
was executed with a failing subprocess fixture.
|
||||
|
||||
New-pipeline picker checks cover both editor choices, fuzzy/Tab navigation,
|
||||
cancel-without-creating, retained source/server/create-only metadata and template
|
||||
source preservation. Compiled CLI/TUI PTY integration launches a new nvim draft
|
||||
(confirmation required), then a new mock OpenCode author that names and publishes
|
||||
through the real CLI (reloaded automatically, no extra submit prompt).
|
||||
|
||||
Reference in New Issue
Block a user