NemoClaw
NemoClaw copied to clipboard
Improve OpenClaw plugin install network-policy denial diagnostics
Follow-up from #4104 / #4125.
#4125 fixes the default sandbox policy so openclaw plugins install can reach the intended ClawHub/npm registry paths from the default restricted baseline. The original issue also suggested improving the user-facing error when network policy blocks plugin-install egress.
Goal
When openclaw plugins install <package> cannot reach ClawHub or the npm registry because sandbox network policy denies egress, surface a clearer diagnostic instead of only the lower-level fetch/socket failure.
Example wording:
Could not reach ClawHub or the npm registry. Your sandbox network policy may be blocking outbound plugin-install access.
Notes
- Keep this separate from #4125 so the policy fix can stay narrow and reviewable.
- Preserve the underlying error details for debugging.
- Consider covering both ClawHub and
registry.npmjs.orgpaths because the real #4104 repro showed the plugin install path can fail at the npm registry layer.