fix(inference): redirect bare inference set to openshell#4566
Conversation
Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe ChangesOpenShell inference set redirect
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
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 docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
E2E Advisor RecommendationRequired E2E: Dispatch hint: Auto-dispatched E2E: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
E2E Scenario Advisor RecommendationRequired scenario E2E: None Full scenario advisor summaryE2E Scenario AdvisorBase: Required scenario E2E
Optional scenario E2E
Relevant changed files
|
PR Review AdvisorFindings: 0 needs attention, 0 worth checking, 0 nice ideas This is an automated advisory review. A human maintainer must make the final merge decision. |
Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
Selective E2E Results — ✅ All requested jobs passedRun: 26685485045
|
Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
Selective E2E Results — ✅ All requested jobs passedRun: 26685971792
|
Selective E2E Results — ✅ All requested jobs passedRun: 26691529480
|
Summary
Bare
nemoclaw inference setnow redirects users toopenshell inference setinstead of emitting an oclif "Missing required flag" error, matching the existing UX contract used byterm,policy set, andgateway stop. Passing both--providerand--modelstill drives the existing NemoClaw sandbox-sync orchestration.Related Issue
Fixes #4544.
Changes
src/commands/inference/set.ts: droprequired: truefrom--provider/--model. When either is absent, short-circuit with the standard OpenShell-redirect message (exit 1) and mention that supplying both flags additionally runs NemoClaw's sandbox-sync step.test/cli.test.ts: rewrite the previous "oclif validation failures without stack traces" assertion to verify the new redirect surface; preserve the no-stack-trace / no-oclif-internals guard.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Signed-off-by: Tinson Lai tinsonl@nvidia.com
Summary by CodeRabbit
Enhanced Command Guidance
inference setcommand now fails gracefully when required parameters are missing, showing a clear multi-line message directing users to run the equivalent OpenShell command and how to sync sandbox config.Improved Validation
Tests