fix: stop channel runtime before WhatsApp removal

This commit is contained in:
Peter Steinberger
2026-05-01 22:36:58 +01:00
parent 4373103c22
commit fe8966b4ea
15 changed files with 344 additions and 4 deletions

View File

@@ -52,6 +52,7 @@ openclaw channels remove --channel telegram --delete
</Tip>
`channels remove` only operates on installed/configured channel plugins. Use `channels add` first for installable catalog channels.
For runtime-backed channel plugins, `channels remove` also asks the running Gateway to stop the selected account before it updates config, so disabling or deleting an account does not leave the old listener active until restart.
Common non-interactive add surfaces include:
@@ -94,6 +95,7 @@ openclaw channels logout --channel whatsapp
- `channels login` supports `--verbose`.
- `channels login` and `logout` can infer the channel when only one supported login target is configured.
- `channels logout` prefers the live Gateway path when reachable, so logout stops any active listener before clearing channel auth state. If a local Gateway is not reachable, it falls back to local auth cleanup.
- Run `channels login` from a terminal on the gateway host. Agent `exec` blocks this interactive login flow; channel-native agent login tools, such as `whatsapp_login`, should be used from chat when available.
## Troubleshooting