Skip to content

docs: clarify inference sandbox prerequisite - #6152

Merged
cv merged 1 commit into
mainfrom
docs/issue-6092-inference-sandbox-prereq
Jul 1, 2026
Merged

docs: clarify inference sandbox prerequisite#6152
cv merged 1 commit into
mainfrom
docs/issue-6092-inference-sandbox-prereq

Conversation

@miyoungc

@miyoungc miyoungc commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Clarifies that nemoclaw inference set requires a running, selected NemoClaw sandbox before switching providers. This prevents new users from copying the first switch command and immediately hitting No sandbox selected.

Related Issue

Fixes #6092

Changes

  • Updates the Switch Inference Providers page metadata to describe running-sandbox scope.
  • Expands prerequisites to tell users to run $$nemoclaw onboard and use --sandbox <name> when needed.
  • Adds a note explaining the No sandbox selected error and recovery path before the first inference set example.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification: doc-only prerequisite clarification with no runtime behavior change.
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification:
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification:
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Verification

  • PR description includes the DCO sign-off declaration and every commit appears as Verified in GitHub
  • Git hooks passed during commit and push, or npx prek run --from-ref main --to-ref HEAD passes
  • Targeted tests pass for changed behavior
  • Full npm test passes (broad runtime changes only)
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Verification note: npm run docs completed with 0 errors, but Fern reported 1 hidden warning, so the warning-free docs checkbox is intentionally left unchecked.


Signed-off-by: Miyoung Choi miyoungc@nvidia.com

Summary by CodeRabbit

  • Documentation
    • Clarified the guide for switching the active inference model in a running sandbox.
    • Updated prerequisites to list the required setup more explicitly, including selecting a sandbox or providing one with the command.
    • Added a note about the “No sandbox selected” message and the steps to retry after onboarding.

@miyoungc miyoungc added the area: docs Documentation, examples, guides, or docs build label Jul 1, 2026
@miyoungc miyoungc self-assigned this Jul 1, 2026
@miyoungc miyoungc added the area: docs Documentation, examples, guides, or docs build label Jul 1, 2026
@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Updated documentation for switching inference providers: revised front-matter description text and expanded the Prerequisites section to clarify that a selected/resumed sandbox (or --sandbox flag) is required, adding a note about the "No sandbox selected" error and guidance to run nemoclaw onboard.

Changes

Documentation clarification

Layer / File(s) Summary
Prerequisites and description update
docs/inference/switch-inference-providers.mdx
Reworded description/description-agent front-matter text and expanded Prerequisites to require a selected sandbox, with a Note explaining the "No sandbox selected" error and remediation via nemoclaw onboard.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

  • NVIDIA/NemoClaw#3431: Both PRs update the same switch-inference-providers documentation file to clarify sandbox selection requirements and guide users to nemoclaw onboard.

Suggested labels: area: inference, area: providers

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and clearly reflects the doc change about clarifying the sandbox prerequisite.
Linked Issues check ✅ Passed The doc updates add the required sandbox prerequisite and recovery guidance before using nemoclaw inference set.
Out of Scope Changes check ✅ Passed The changes stay focused on the documented prerequisite clarification and related explanatory note.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/issue-6092-inference-sandbox-prereq

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

E2E Advisor Recommendation

Required E2E: None
Optional E2E: None

Workflow run

Full advisor summary

E2E Recommendation Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required E2E

  • None. Docs-only change to an inference guide. The edits clarify prerequisites, default sandbox behavior, and wording, but do not modify runtime code or user-flow automation; no E2E is required.

Optional E2E

  • None.

New E2E recommendations

  • None.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

E2E Target Recommendation

Required E2E targets: None
Optional E2E targets: None

Workflow run

Full E2E target advisor summary

E2E Target Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required E2E targets

  • None. Docs-only change outside the E2E target workflow, registry, fixtures, runtime support, and target-relevant implementation paths; no E2E target dispatch is required.

Optional E2E targets

  • None.

Relevant changed files

  • None.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/inference/switch-inference-providers.mdx`:
- Around line 21-29: Update the prerequisite text in the
switch-inference-providers docs so the `--sandbox <name>` option is described as
necessary whenever no default sandbox is selected, not only when multiple
sandboxes are registered. Adjust the wording near the NemoClaw onboarding and
`inference set` guidance to match the behavior described by the existing Note,
using the same `$$nemoclaw inference set` and `$$nemoclaw onboard` references.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 3f5a28d7-0fa7-4a8b-a004-292ef9154c98

📥 Commits

Reviewing files that changed from the base of the PR and between 76654f7 and 9488fbf.

📒 Files selected for processing (1)
  • docs/inference/switch-inference-providers.mdx

Comment on lines +21 to +29
- A running NemoClaw sandbox created or resumed with `$$nemoclaw onboard`.
- A selected default sandbox, or pass `--sandbox <name>` to each `$$nemoclaw inference set` command when more than one sandbox is registered.
- The OpenShell CLI on your `PATH`, which NemoClaw uses internally.

<Note>
If you run `$$nemoclaw inference set` before NemoClaw has a selected sandbox, the CLI exits with `No sandbox selected`.
Run `$$nemoclaw onboard` first, then retry the switch.
</Note>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Broaden the --sandbox prerequisite wording.

This says --sandbox <name> is only needed when more than one sandbox is registered, but inference set also fails when no default sandbox is selected at all. Users can hit that path with a single sandbox too, so this should say --sandbox <name> is available whenever no default is set.

Suggested wording tweak
-- A selected default sandbox, or pass `--sandbox <name>` to each `nemoclaw inference set` command when more than one sandbox is registered.
+- A selected default sandbox, or pass `--sandbox <name>` to each `nemoclaw inference set` command when no default sandbox is selected.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- A running NemoClaw sandbox created or resumed with `$$nemoclaw onboard`.
- A selected default sandbox, or pass `--sandbox <name>` to each `$$nemoclaw inference set` command when more than one sandbox is registered.
- The OpenShell CLI on your `PATH`, which NemoClaw uses internally.
<Note>
If you run `$$nemoclaw inference set` before NemoClaw has a selected sandbox, the CLI exits with `No sandbox selected`.
Run `$$nemoclaw onboard` first, then retry the switch.
</Note>
- A running NemoClaw sandbox created or resumed with `$$nemoclaw onboard`.
- A selected default sandbox, or pass `--sandbox <name>` to each `$$nemoclaw inference set` command when no default sandbox is selected.
- The OpenShell CLI on your `PATH`, which NemoClaw uses internally.
<Note>
If you run `$$nemoclaw inference set` before NemoClaw has a selected sandbox, the CLI exits with `No sandbox selected`.
Run `$$nemoclaw onboard` first, then retry the switch.
</Note>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/inference/switch-inference-providers.mdx` around lines 21 - 29, Update
the prerequisite text in the switch-inference-providers docs so the `--sandbox
<name>` option is described as necessary whenever no default sandbox is
selected, not only when multiple sandboxes are registered. Adjust the wording
near the NemoClaw onboarding and `inference set` guidance to match the behavior
described by the existing Note, using the same `$$nemoclaw inference set` and
`$$nemoclaw onboard` references.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

PR Review Advisor — No blocking findings

Merge posture: No blocking advisor findings
Primary next action: No advisor follow-up required beyond maintainer review.
Open items: 0 required · 0 warnings · 0 suggestions · 0 test follow-ups

Workflow run details

This is an automated, non-binding review; it still expects maintainers and agents to respond to each required or warning item. Treat suggestions as current-PR improvements when they touch changed code; defer only with maintainer rationale or a linked follow-up. A human maintainer must make the final merge decision.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

PR Review Advisor (Nemotron Ultra) — No blocking findings

Merge posture: No blocking advisor findings
Primary next action: Consider PRA-1: Documentation clarification: added explicit prerequisite that `nemoclaw onboard` must run first.
Open items: 0 required · 0 warnings · 1 suggestion · 0 test follow-ups
Since last review: 0 prior items resolved · 0 still apply · 0 new items found

Action checklist

  • PRA-1 In-scope improvement: Documentation clarification: added explicit prerequisite that `nemoclaw onboard` must run first in docs/inference/switch-inference-providers.mdx:15

Findings index

ID Severity Category Location Required action
PRA-1 Improvement docs docs/inference/switch-inference-providers.mdx:15 Merge as-is; the clarification is complete and addresses the linked issue fully.
Review findings by urgency: 0 required fixes, 0 items to resolve/justify, 1 in-scope improvement

⚠️ Resolve or justify before merge

Investigate these in the current review; either fix them, explain why they are not applicable, or document the accepted risk.

  • None.

💡 In-scope improvements

These are lower-risk, not throwaway. Prefer fixing them in this PR when they are local to changed code; defer only with rationale or a linked follow-up.

PRA-1 Improvement — Documentation clarification: added explicit prerequisite that `nemoclaw onboard` must run first

  • Location: docs/inference/switch-inference-providers.mdx:15
  • Category: docs
  • Problem: The PR adds a new prerequisite bullet and a Note block explaining that `nemoclaw onboard` must be run first to create/select a sandbox before `inference set` can work. This improves user experience by preventing the "No sandbox selected" error.
  • Impact: New users following the guide top-to-bottom will no longer hit "No sandbox selected" on the first command without knowing why or how to fix it.
  • Suggested action: Merge as-is; the clarification is complete and addresses the linked issue fully.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Read the updated prerequisites section and Note block in the diff — verify the new bullet 'A running NemoClaw sandbox created or resumed with `nemoclaw onboard`' and the Note block explaining the error and recovery.
  • Missing regression test: Not applicable — documentation-only change with no runtime behavior modification
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: Diff shows +1 prerequisite bullet, +1 Note block, and updated frontmatter descriptions at lines 1-20 of the file
Since last review details

Current findings, using the urgency labels above:

PRA-1 Improvement — Documentation clarification: added explicit prerequisite that `nemoclaw onboard` must run first

  • Location: docs/inference/switch-inference-providers.mdx:15
  • Category: docs
  • Problem: The PR adds a new prerequisite bullet and a Note block explaining that `nemoclaw onboard` must be run first to create/select a sandbox before `inference set` can work. This improves user experience by preventing the "No sandbox selected" error.
  • Impact: New users following the guide top-to-bottom will no longer hit "No sandbox selected" on the first command without knowing why or how to fix it.
  • Suggested action: Merge as-is; the clarification is complete and addresses the linked issue fully.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Read the updated prerequisites section and Note block in the diff — verify the new bullet 'A running NemoClaw sandbox created or resumed with `nemoclaw onboard`' and the Note block explaining the error and recovery.
  • Missing regression test: Not applicable — documentation-only change with no runtime behavior modification
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: Diff shows +1 prerequisite bullet, +1 Note block, and updated frontmatter descriptions at lines 1-20 of the file

Workflow run details

This is an automated, non-binding review; it still expects maintainers and agents to respond to each required or warning item. Treat suggestions as current-PR improvements when they touch changed code; defer only with maintainer rationale or a linked follow-up. A human maintainer must make the final merge decision.

@cv
cv merged commit 4a342ea into main Jul 1, 2026
39 of 42 checks passed
@cv
cv deleted the docs/issue-6092-inference-sandbox-prereq branch July 1, 2026 22:47
Hadar301 pushed a commit to Hadar301/NemoClaw-OpenShift that referenced this pull request Jul 12, 2026
<!-- markdownlint-disable MD041 -->
## Summary
Clarifies that `nemoclaw inference set` requires a running, selected
NemoClaw sandbox before switching providers. This prevents new users
from copying the first switch command and immediately hitting `No
sandbox selected`.

## Related Issue
Fixes NVIDIA#6092

## Changes
- Updates the Switch Inference Providers page metadata to describe
running-sandbox scope.
- Expands prerequisites to tell users to run `$$nemoclaw onboard` and
use `--sandbox <name>` when needed.
- Adds a note explaining the `No sandbox selected` error and recovery
path before the first `inference set` example.

## Type of Change

- [ ] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [x] Doc only (prose changes, no code sample modifications)
- [ ] Doc only (includes code sample changes)

## Quality Gates
<!-- Check all that apply. For any "covered by existing tests", "not
applicable", or waiver entry, add a brief justification on the same line
or in the Changes section. -->
- [ ] Tests added or updated for changed behavior
- [ ] Existing tests cover changed behavior — justification:
- [x] Tests not applicable — justification: doc-only prerequisite
clarification with no runtime behavior change.
- [x] Docs updated for user-facing behavior changes
- [ ] Docs not applicable — justification:
- [ ] Sensitive paths changed (security, policy, credentials, preflight,
onboarding, inference, runner, sandbox, or messaging)
- [ ] Sensitive-path review completed or maintainer-approved waiver
recorded — reviewer/approval link/justification:
- [ ] Non-success, skipped, or missing CI check accepted by maintainer —
check name, approval link, and follow-up issue:

## Verification
<!-- Check each item you ran and confirmed. Leave unchecked items you
skipped. Doc-only changes do not require npm test unless you ran it. -->
- [x] PR description includes the DCO sign-off declaration and every
commit appears as `Verified` in GitHub
- [x] Git hooks passed during commit and push, or `npx prek run
--from-ref main --to-ref HEAD` passes
- [ ] Targeted tests pass for changed behavior
- [ ] Full `npm test` passes (broad runtime changes only)
- [x] Quality Gates section completed with required justifications or
waivers
- [x] No secrets, API keys, or credentials committed
- [ ] `npm run docs` builds without warnings (doc changes only)
- [x] Doc pages follow the [style
guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md)
(doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)

Verification note: `npm run docs` completed with 0 errors, but Fern
reported 1 hidden warning, so the warning-free docs checkbox is
intentionally left unchecked.

---
<!-- DCO sign-off is required in this PR description, and every commit
must appear as Verified in GitHub. Run: git config user.name && git
config user.email -->
Signed-off-by: Miyoung Choi <miyoungc@nvidia.com>

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Clarified the guide for switching the active inference model in a
running sandbox.
* Updated prerequisites to list the required setup more explicitly,
including selecting a sandbox or providing one with the command.
* Added a note about the “No sandbox selected” message and the steps to
retry after onboarding.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Documentation, examples, guides, or docs build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[All Platforms][Docs] Switch Inference Providers page missing sandbox prerequisite — nemoclaw inference set fails immediately for new users

3 participants