Skip to content

fix(cli): drop the node:sqlite experimental warning from command output - #12772

Open
sandeepstele wants to merge 1 commit into
NVIDIA:mainfrom
sandeepstele:fix/12741-sqlite-experimental-warning
Open

sandeepstele wants to merge 1 commit into
NVIDIA:mainfrom
sandeepstele:fix/12741-sqlite-experimental-warning

Conversation

@sandeepstele

@sandeepstele sandeepstele commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Outcome

On Node 22, NemoClaw commands no longer print ExperimentalWarning: SQLite is an experimental feature and might change at any time on stderr. nemoclaw --version now prints only the version, so VER=$(nemoclaw --version 2>&1) captures one line again. Every other warning still prints.

Reason

src/lib/state/sandbox.ts loads node:sqlite, and most commands open the state store. On Node 22 (NemoClaw supports >=22.19.0), node:sqlite is still experimental, so Node writes the two-line warning to stderr for each command. Node 24 no longer warns. #12741 reports the warning on --version, list, status, doctor and --help.

Related issues

Refs #12741. This fixes item 1, the SQLite warning on host commands. Items 2–4 (the start output and the destroy wording) and the in-sandbox openclaw --help warning are separate changes.

Changes

  • bin/nemoclaw.js: before the compiled CLI loads, wrap process.emitWarning and drop only a warning whose type is ExperimentalWarning and whose message starts with SQLite is an experimental feature. All other warnings, including other ExperimentalWarnings, pass through unchanged. This follows the narrow approach fix(agent): suppress internal warning noise #9021 took for UNDICI-EHPA, rather than a blanket --disable-warning=ExperimentalWarning.
  • test/package-contract/cli/launcher-warnings.test.ts: load the launcher, then emit the SQLite warning, another ExperimentalWarning and a DeprecationWarning. Assert that only the SQLite one is dropped. The test emits the warnings itself, so it gives the same result on Node 22 and Node 24.

Verification

  • Reproduced on macOS 26.6 (Apple M5) with Node 22.23.3 on main (bdac003). nemoclaw --version and nemoclaw list each printed the two warning lines on stderr.
  • With this change on Node 22.23.3, --version, list, --help and status print nothing on stderr. A test ExperimentalWarning and a DeprecationWarning still print.
  • npx vitest run test/package-contract/cli/launcher-warnings.test.ts passes on Node 24.18.0 and Node 22.23.3. With main's bin/nemoclaw.js, it fails.
  • npx vitest run test/package-contract/cli/top-level-error.test.ts test/package-contract/cli/build-identity.test.ts: 25 passed.
  • Pre-commit and pre-push hooks passed.
  • The diff contains no secrets, API keys or credentials.

Review notes

  • Sensitive path: bin/nemoclaw.js. No independent pre-publication review exists. The author self-reviewed the change and checked the new test against main's launcher, so the change is awaiting maintainer review.
  • My open fix(cli): print the version without starting child processes #12351 also edits bin/nemoclaw.js, in a different section. The two merge cleanly in either order.
  • This PR comes from a fork, so openshell-sdk-package fails with "The reviewed SDK is available only to same-repository pull requests".

Signed-off-by: Sandeep Satheesh sandeep.sath7@gmail.com

Summary by CodeRabbit

  • Bug Fixes
    • The CLI no longer displays Node’s experimental SQLite warning, reducing unnecessary warning output when launching the app.
    • Other experimental and deprecation warnings continue to appear, so relevant notices remain visible.

On Node 22, `node:sqlite` is still experimental, so every command that
opens the state store printed "ExperimentalWarning: SQLite is an
experimental feature" on stderr. That included `nemoclaw --version`, which
broke scripts that capture its output.

Filter only that warning in the launcher before the compiled CLI loads.
Every other warning, including other ExperimentalWarnings, still prints.

Refs NVIDIA#12741

Signed-off-by: Sandeep Satheesh <sandeep.sath7@gmail.com>
@copy-pr-bot

copy-pr-bot Bot commented Oct 7, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/NemoClaw/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 1a378f21-0215-47bd-a964-94e86cbb5476
📥 Commits

Reviewing files that changed from the base of the PR and between b430d4d and 6f088e7.

📒 Files selected for processing (2)
  • bin/nemoclaw.js
  • test/package-contract/cli/launcher-warnings.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.


📝 Walkthrough

Walkthrough

The launcher now suppresses matching experimental SQLite warnings and forwards other warnings unchanged. A CLI test checks the filtering behavior and verifies that unrelated experimental and deprecation warnings remain in stderr.

Changes

Launcher warning filter

Layer / File(s) Summary
Filter and warning behavior test
bin/nemoclaw.js, test/package-contract/cli/launcher-warnings.test.ts
The launcher suppresses experimental warnings that match the SQLite type and message. The test checks that unrelated experimental and deprecation warnings remain in stderr.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: cv, jason-ma-nv

Merge Risk: ⚪ Minimal · up to 6f088

The launcher suppresses the SQLite experimental warning while preserving unrelated warnings. No material merge-blocking risk is established by the reviewed change.

🚥 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 clearly and concisely describes the main change: suppressing the Node SQLite experimental warning from CLI output.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@wscurran wscurran added area: cli Command line interface, flags, terminal UX, or output bug-fix PR fixes a bug or regression labels Oct 14, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli Command line interface, flags, terminal UX, or output bug-fix PR fixes a bug or regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants