Skip to content

fix(vm): restore hint bar on wizard's self-prompting pickers#51

Merged
hi-lei merged 1 commit into
mainfrom
fix/vm-wizard-hint-bar
Jun 2, 2026
Merged

fix(vm): restore hint bar on wizard's self-prompting pickers#51
hi-lei merged 1 commit into
mainfrom
fix/vm-wizard-hint-bar

Conversation

@hi-lei
Copy link
Copy Markdown
Collaborator

@hi-lei hi-lei commented Jun 2, 2026

Summary

The vm create wizard's storage, ssh-keys, and startup-script steps prompt inside their Loaders via direct prompter.Select / prompter.MultiSelect calls. In per-prompt mode the wizard composite (which draws the layout's hint bar) isn't running while a Loader executes, so these pickers rendered without the hint legend.

The SSH multi-select was the worst case: it looked like a plain list, and pressing enter without space-toggling threw ✗ at least 1 selections required with no visible cue that space toggles.

Changes

  • Restore the hint bar on all seven self-prompting picker calls — the three step prompts (storage, ssh-keys, startup-script) plus the add-key, pick-pub-file, add-script, and attach-volume sub-flows — via WithShowHints / WithMultiSelectShowHints.
  • Trim the hand-rolled (Ctrl+D to finish) from the two startup-script editor labels; verdagostack's editor now renders the standard (ctrl+d to submit, esc to cancel) affordance by default (and surfaces the esc to cancel cue the old label omitted).
  • Bump verdagostack v1.4.1v1.4.2, which brings the improved multiselect min-selection error message (… — press space to select) and the editor hint/summary override hooks.

Testing

  • make build
  • make test (unit tests + golangci-lint) ✅ — exit 0, no failures, no lint hits
  • Verified the editor contract our calls depend on (prefill, ctrl+d submit, esc cancel, default hint) is intact against v1.4.2; verdagostack editor tests pass.
  • Manually walked the vm create SSH step: hint bar present, improved error message shown.

Notes

WithMultiSelectCursor (to highlight a freshly created SSH key after add) did not land in v1.4.2 — that highlight enhancement is deferred to a follow-up once the option exists in verdagostack.

🤖 Generated with Claude Code

The vm create wizard's storage, ssh-keys, and startup-script steps prompt
inside their Loaders via direct prompter.Select/MultiSelect calls. In
per-prompt mode the composite program (which draws the layout's hint bar)
isn't running while a Loader executes, so these pickers rendered without
the hint legend — the SSH multi-select looked like a plain list, and
pressing enter without space-toggling threw "at least 1 selection
required" with no visible cue that space toggles.

Pass WithShowHints / WithMultiSelectShowHints to all seven such calls (the
three step prompts plus the add-key, pick-pub-file, add-script, and
attach-volume sub-flows).

Also trim the hand-rolled "(Ctrl+D to finish)" from the two startup-script
editor labels; verdagostack's editor now renders the standard
"(ctrl+d to submit, esc to cancel)" affordance by default.

Bump verdagostack v1.4.1 -> v1.4.2 for the improved multiselect
min-selection error message ("... — press space to select") and the
editor hint/summary override hooks.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@hi-lei hi-lei merged commit a577165 into main Jun 2, 2026
12 checks passed
@hi-lei hi-lei deleted the fix/vm-wizard-hint-bar branch June 2, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant