NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[all platform] Onboarding exits entirely on unknown policy preset name instead of re-prompting

Open zNeill opened this issue 8 months ago • 2 comments

Description

Description

In interactive onboarding, choosing list and entering a non-existent policy preset (e.g. 11) prints Unknown policy preset(s): … and terminates the whole process with exit code 1. There is no chance to correct input without restarting or using resume.

Environment

Item Version / detail
Device macos
Node.js (e.g. v20.x / v22.x — fill as on device)
OpenShell CLI 0.0.19 (or your version)
NemoClaw v0.0.2
OpenClaw 2026.3.11 (if relevant)

Steps to reproduce

  1. Run nemoclaw onboard (interactive).
  2. Complete steps until Policy presets (7/7).
  3. At Apply suggested presets …? [Y/n/list]:, enter list.
  4. At Enter preset names (comma-separated):, enter an invalid name, e.g. 11.

Actual behavior

  • Message: Unknown policy preset(s): 11
  • Process exits immediately; onboarding does not complete.

Expected behavior

  • Show the same error without killing the whole wizard, e.g.:
    • Re-prompt for comma-separated preset names, or
    • Return to [Y/n/list] with a short hint and the list of valid names, or
    • Offer skip for this step.
  • Only abort if the user explicitly chooses cancel/exit (if such an option exists).

Bug Details

Field Value
Priority Unprioritized
Action Dev - Open - To fix
Disposition Open issue
Module Machine Learning - NemoClaw
Keyword NemoClaw, NEMOCLAW_GH_SYNC_APPROVAL

[NVB# 6038910]

[NVB#6038910]

zNeill avatar Apr 01 '26 12:04 zNeill

Sync issue, copy description here In interactive onboarding, choosing list and entering a non-existent policy preset (e.g. 11) prints Unknown policy preset(s): … and terminates the whole process with exit code 1. There is no chance to correct input without restarting or using resume.

Image

Steps to reproduce

  • Run nemoclaw onboard (interactive).
  • Complete steps until Policy presets (7/7).
  • At Apply suggested presets …? [Y/n/list]:, enter list.
  • At Enter preset names (comma-separated):, enter an invalid name, e.g. 11.

Actual behavior

  • Message: Unknown policy preset(s): 11
  • Process exits immediately; onboarding does not complete.

Expected behavior

  • Show the same error without killing the whole wizard, e.g.:

    • Re-prompt for comma-separated preset names, or
    • Return to [Y/n/list] with a short hint and the list of valid names, or
    • Offer skip for this step.
  • Only abort if the user explicitly chooses cancel/exit (if such an option exists)

JoyceChenNV avatar Apr 01 '26 12:04 JoyceChenNV

I made the changes you @JoyceChenNV @zNeill to make sure that after the when user enters list they can retry upto 5 times to enter the right presets before it exists. I have kept it bounded by max retries but if you want that they can cancel it only by killing the terminal or exiting the session let me know.

sdshah09 avatar Apr 01 '26 15:04 sdshah09