Skip to content

[spark] Re-onboard with existing sandbox name silently overwrites instead of rejecting #1102

Closed

Description

@eko-liu

Description

[Description]
When performing re-onboarding in NemoClaw, selecting an existing sandbox with the same name does not trigger a rejection or warning.
Instead of notifying the user that a sandbox with the same name already exists, the system silently overwrites the existing sandbox configuration.
This unexpected overwrite may lead to accidental data or configuration loss and inconsistencies during sandbox reinitialization.

[Environment]
Device: spark
Node.js: v20.20.1
npm: 10.8.2
Docker: Docker Engine 29.3.0
OpenShell CLI: 0.0.15
NemoClaw: v0.1.0 (cec1e4)
OpenClaw: 2026.3.11 (29dc654)
Note: Issue reproducible intermittently, primarily when re-onboarding via CLI after partial uninstall or cleanup.

[Steps to Reproduce]

  1. Run onboarding to create a new sandbox environment, e.g. sandbox-a.
  2. Once onboarding is complete, run re-onboard with the same sandbox name sandbox-a.
  3. Observe that the system does not prompt any rejection or duplication warning.
  4. After completion, sandbox-a is overwritten with the new configuration and previous data is lost.

[Expected Result]
When attempting to re-onboard using a sandbox name that already exists, the CLI should:

  • Prompt the user with a confirmation or warning message.
  • Optionally reject the request unless explicitly confirmed (e.g. via --force).

[Actual Result]
The CLI proceeds with the onboarding silently and overwrites the existing sandbox environment without any user confirmation or rejection message.

Steps to reproduce

No steps provided.


[NVB# 6029373]

Activity

  1. added
    NV QA
    on Mar 30, 2026
  2. hulynn commented on Mar 31, 2026

    @hulynn
    Contributor

    @jacobtomlinson @ericksoa @drobison00
    Confirmed — running nemoclaw onboard with a sandbox name that already exists silently overwrites it without any warning or confirmation prompt. This can lead to accidental data loss.
    Expected behavior: reject or prompt for confirmation before overwriting an existing sandbox. This is a significant safety issue for multi-sandbox setups.

  3. self-assigned this
    on Apr 3, 2026
  4. paritoshd-nv commented on Apr 3, 2026

    @paritoshd-nv
    Contributor

    Hi @eko-liu and @hulynn -
    As per the current logic:

    1. If existing sandbox (with same name) is ready (functional), then onboard reuses it.
    2. If NEMOCLAW_RECREATE_SANDBOX is set, and if existing sandbox (with same name) is ready, it is deleted and recreated.
    3. If existing sandbox (with same name) is not ready, it is deleted and recreated.

    Here is the log for case 1:

      [5/7] Creating sandbox
      ──────────────────────────────────────────────────
      Sandbox name (lowercase, numbers, hyphens) [my-assistant]:
    → Found forward on sandbox 'my-assistant'
    ✓ Stopped forward of port 18789 for sandbox my-assistant
      Sandbox 'my-assistant' already exists and is ready.
      Reusing existing sandbox.
      Set NEMOCLAW_RECREATE_SANDBOX=1 to recreate it instead.
    
  5. paritoshd-nv commented on Apr 6, 2026

    @paritoshd-nv
    Contributor

    As noted in the last comment, onboard workflow does not silently overwrite, rather silently reuse.
    Only in the case when sandbox is not ready, it used to silently overwrite.

    Pushed a PR to prompt before reusing existing sandbox. And not to silently overwrite, when it is not ready.

    #1527

        fix(cli): prompt before reusing existing sandbox on re-onboard
    
        Add --recreate-sandbox CLI flag and interactive confirmation prompt when
        a sandbox with the same name already exists during onboarding. In
        non-interactive mode, ready sandboxes are reused with a hint about the
        new flag; non-ready sandboxes now exit with an error instead of silently
        recreating.
    
  6. added a commit that references this issue on Apr 7, 2026
    57a93dd
  7. added a commit that references this issue on Apr 14, 2026
    46ddced
  8. changed the title [-][NemoClaw][spark] Re-onboard with existing sandbox name silently overwrites instead of rejecting[/-] [+][spark] Re-onboard with existing sandbox name silently overwrites instead of rejecting[/+] on Apr 21, 2026
  9. added
    area: install
    area: onboarding
    platform: dgx-spark
    and removed on Jun 3, 2026
  10. added theissue type on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

NV QAarea: installarea: onboardingplatform: dgx-spark

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions