You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(onboard): extract web search verification probe (#3305)
## Summary
Extract the post-create web-search verification probe out of the large
onboarding module. This keeps web-search setup and verification in
focused helper modules while leaving onboarding flow orchestration
unchanged.
## Changes
- Add `src/lib/onboard/web-search-verify.ts` for best-effort
Hermes/OpenClaw web-search runtime verification.
- Update `src/lib/onboard.ts` to delegate web-search verification
through the extracted helper.
- Add unit tests covering active Hermes/OpenClaw detection,
disabled/malformed OpenClaw config warnings, unsupported-agent warnings,
and probe-error handling.
- Update the source-shape regression to include the extracted
verification module.
## Type of Change
- [x] 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)
## Verification
- [x] `npx prek run --all-files` passes
- [x] `npm test` passes
- [x] Tests added or updated for new or changed behavior
- [x] No secrets, API keys, or credentials committed
- [ ] Docs updated for user-facing behavior changes
- [ ] `make docs` builds without warnings (doc changes only)
- [ ] 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)
---
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Runtime verification that web search is actually enabled inside
sandboxes; logs success or emits non-fatal warnings when verification
cannot be completed.
* **Tests**
* Expanded automated tests covering multiple agent/config scenarios,
parsing edge cases, and probe failures to ensure robust verification
behavior.
[](https://app.coderabbit.ai/change-stack/NVIDIA/NemoClaw/pull/3305)
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: cjagwani <cjagwani@nvidia.com>
0 commit comments