Repository navigation
fix(cli): drop the node:sqlite experimental warning from command output - #12772
sandeepstele wants to merge 1 commit into
Conversation
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>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review. 📝 WalkthroughWalkthroughThe 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. ChangesLauncher warning filter
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to 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)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Outcome
On Node 22, NemoClaw commands no longer print
ExperimentalWarning: SQLite is an experimental feature and might change at any timeon stderr.nemoclaw --versionnow prints only the version, soVER=$(nemoclaw --version 2>&1)captures one line again. Every other warning still prints.Reason
src/lib/state/sandbox.tsloadsnode:sqlite, and most commands open the state store. On Node 22 (NemoClaw supports>=22.19.0),node:sqliteis 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,doctorand--help.Related issues
Refs #12741. This fixes item 1, the SQLite warning on host commands. Items 2–4 (the
startoutput and thedestroywording) and the in-sandboxopenclaw --helpwarning are separate changes.Changes
bin/nemoclaw.js: before the compiled CLI loads, wrapprocess.emitWarningand drop only a warning whose type isExperimentalWarningand whose message starts withSQLite is an experimental feature. All other warnings, including otherExperimentalWarnings, pass through unchanged. This follows the narrow approach fix(agent): suppress internal warning noise #9021 took forUNDICI-EHPA, rather than a blanket--disable-warning=ExperimentalWarning.test/package-contract/cli/launcher-warnings.test.ts: load the launcher, then emit the SQLite warning, anotherExperimentalWarningand aDeprecationWarning. 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
main(bdac003).nemoclaw --versionandnemoclaw listeach printed the two warning lines on stderr.--version,list,--helpandstatusprint nothing on stderr. A testExperimentalWarningand aDeprecationWarningstill print.npx vitest run test/package-contract/cli/launcher-warnings.test.tspasses on Node 24.18.0 and Node 22.23.3. Withmain'sbin/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.Review notes
bin/nemoclaw.js. No independent pre-publication review exists. The author self-reviewed the change and checked the new test againstmain's launcher, so the change is awaiting maintainer review.bin/nemoclaw.js, in a different section. The two merge cleanly in either order.openshell-sdk-packagefails with "The reviewed SDK is available only to same-repository pull requests".Signed-off-by: Sandeep Satheesh sandeep.sath7@gmail.com
Summary by CodeRabbit