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
fix(onboard): preserve disabled channels through rebuild so channels start can recover (#3395)
## Summary
`nemoclaw <sandbox> channels start <name>` reported success but left the
bot offline whenever it ran after a `channels stop <name>` + rebuild.
The stop path correctly disabled the bridge, but the subsequent rebuild
silently dropped the channel from the registry's configured set, leaving
a later `channels start` with nothing to re-enable.
## Related Issue
Fixes#3381
## Changes
- `src/lib/onboard.ts`: persist the operator's configured channel set on
the new registry entry (input `enabledChannels`), not the
post-disabled-filter `activeMessagingChannels`. `disabledChannels`
remains the runtime modifier; the baked image and the gateway provider
attachments still respect it.
- `test/onboard.test.ts`: regression test that drives `createSandbox`
with `disabledChannels: ["telegram"]` already in the registry and
asserts the new `registerSandbox` payload keeps `messagingChannels:
["telegram"]` while the Dockerfile build arg and `--provider` flags
continue to exclude the disabled channel.
## 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: Tinson Lai <tinsonl@nvidia.com>
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Messaging channels you configure are now preserved when recreating a
sandbox, allowing them to be re-enabled in subsequent rebuilds.
* Disabled messaging channels no longer incorrectly prevent other
sandboxes from using the same credential token.
[](https://app.coderabbit.ai/change-stack/NVIDIA/NemoClaw/pull/3395)
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
Co-authored-by: J. Yaunches <jyaunches@nvidia.com>
Co-authored-by: Prekshi Vyas <34834085+prekshivyas@users.noreply.github.com>
0 commit comments