Repository navigation
fix(cli): surface local inference health in status - #1756
Conversation
📝 WalkthroughWalkthroughAdded health-probing for local inference backends (Ollama, vLLM): new APIs to map provider → health endpoint and run a curl-based probe; tests, CLI integration, and documentation updated to surface probe results (healthy vs unreachable) and remediation hints in sandbox status output. Changes
Sequence DiagramsequenceDiagram
participant CLI as nemoclaw (status)
participant Probe as probeLocalProviderHealth()
participant Curl as runCurlProbeImpl()
participant Host as Local Provider (Ollama / vLLM)
CLI->>Probe: probeLocalProviderHealth(provider)
Probe->>Probe: getLocalProviderHealthEndpoint(provider)
Probe->>Curl: runCurlProbeImpl(curl argv)
Curl->>Host: HTTP GET /api/tags or /v1/models
Host-->>Curl: (response / connection refused / timeout)
Curl-->>Probe: CurlProbeResult { ok, httpStatus, stdout, stderr }
Probe->>Probe: buildLocalProviderProbeDetail(result, providerLabel, endpoint)
Probe-->>CLI: LocalProviderHealthStatus { ok, providerLabel, endpoint, detail }
CLI->>CLI: print Inference status line (healthy/unreachable + detail)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~40 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.agents/skills/nemoclaw-user-monitor-sandbox/SKILL.md:
- Line 22: Take the manual edits made to the skill markdown (e.g., the "Run the
status command to view the sandbox state, gateway health, and active inference
configuration:" line and the other edited sections) out of the generated
SKILL.md and instead apply those content changes to the canonical docs source
used to generate skills; then run the skill-generation step to regenerate the
SKILL.md artifact so the file is back to its generated state and the change is
tracked in docs rather than edited in-place.
In @.agents/skills/nemoclaw-user-reference/references/commands.md:
- Around line 147-148: This file is generated and must not be edited directly;
revert changes in .agents/skills/nemoclaw-user-reference/references/commands.md
and instead update the canonical docs source under docs/ (the source that feeds
skill generation), then run the docs-to-skills regeneration step (the project’s
doc build or skill generation script) so the updated content flows into the
generated .agents/skills output; reference the generated file name
(.agents/skills/nemoclaw-user-reference/references/commands.md) when locating
the regression and ensure edits are applied only in docs/ before regenerating.
🪄 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: Pro
Run ID: 0c279c55-01d2-4da8-a6ff-7be7e7b13a6d
📒 Files selected for processing (6)
.agents/skills/nemoclaw-user-monitor-sandbox/SKILL.md.agents/skills/nemoclaw-user-reference/references/commands.md.agents/skills/nemoclaw-user-reference/references/troubleshooting.mddocs/monitoring/monitor-sandbox-activity.mddocs/reference/commands.mddocs/reference/troubleshooting.md
✅ Files skipped from review due to trivial changes (2)
- .agents/skills/nemoclaw-user-reference/references/troubleshooting.md
- docs/reference/commands.md
## Summary Add a host-side local inference health probe to `nemoclaw <name> status` so users get a clear warning when Ollama or vLLM is down instead of only discovering the failure later through a silent `inference.local` request inside the sandbox. ## Related Issue Fixes NVIDIA#995. ## Changes - add a lightweight localhost health probe helper for local inference providers - show `Inference: healthy|unreachable` in `nemoclaw <name> status` for local providers - print actionable Ollama/vLLM remediation text when the host-side probe fails - add unit coverage for the new probe helper and CLI coverage for the Ollama-down status path ## Type of Change - [x] Code change for a new feature, bug fix, or refactor. - [ ] Code change with doc updates. - [ ] Doc only. Prose changes without code sample modifications. - [ ] Doc only. Includes code sample changes. ## Testing - [ ] `npx prek run --all-files` passes (or equivalently `make check`). - [x] `npm test` passes. - [ ] `make docs` builds without warnings. (for doc-only changes) ## Checklist ### General - [x] I have read and followed the [contributing guide](https://github.com/NVIDIA/NemoClaw/blob/main/CONTRIBUTING.md). - [ ] I have read and followed the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md). (for doc-only changes) ### Code Changes - [x] Formatters applied — `npx prek run --all-files` auto-fixes formatting (or `make format` for targeted runs). - [x] Tests added or updated for new or changed behavior. - [x] No secrets, API keys, or credentials committed. - [ ] Doc pages updated for any user-facing behavior changes (new commands, changed defaults, new features, bug fixes that contradict existing docs). ### Doc Changes - [ ] Follows the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md). Try running the `nemoclaw-contributor-update-docs` agent skill to draft changes while complying with the style guide. For example, prompt your agent with "`/nemoclaw-contributor-update-docs` catch up the docs for the new changes I made in this PR." - [ ] New pages include SPDX license header and frontmatter, if creating a new page. - [ ] Cross-references and links verified. --- Signed-off-by: Carlos Villela <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Status command now shows local inference health (healthy vs unreachable) for Ollama and vLLM, including probed endpoint and remediation hints. * **Tests** * Added coverage for local provider health probing: successful probes, unreachable hosts with guidance, and unsupported-provider behavior. * **Documentation** * Updated status, troubleshooting, monitoring, and user guidance to describe the new local inference health checks and recommended recovery steps. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Summary
Add a host-side local inference health probe to
nemoclaw <name> statusso users get a clear warning when Ollama or vLLM is down instead of only discovering the failure later through a silentinference.localrequest inside the sandbox.Related Issue
Fixes #995.
Changes
Inference: healthy|unreachableinnemoclaw <name> statusfor local providersType of Change
Testing
npx prek run --all-filespasses (or equivalentlymake check).npm testpasses.make docsbuilds without warnings. (for doc-only changes)Checklist
General
Code Changes
npx prek run --all-filesauto-fixes formatting (ormake formatfor targeted runs).Doc Changes
nemoclaw-contributor-update-docsagent skill to draft changes while complying with the style guide. For example, prompt your agent with "/nemoclaw-contributor-update-docscatch up the docs for the new changes I made in this PR."Signed-off-by: Carlos Villela [email protected]
Summary by CodeRabbit
New Features
Tests
Documentation