Add a watchdog for OpenClaw gateway recovery - #108
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
clawmaster servehelp/startup output andclawmaster statusreporting.Why
Users reported that the OpenClaw gateway can crash from time to time. ClawMaster should make the service mode more resilient and make that protection visible so users can tell the gateway is being monitored.
How
clawmaster serve, probes gateway health, restarts it after unexpected downtime, and pauses after an intentional manual stop.--no-gateway-watchdog, and reads/api/gateway/statusfor status output.Testing
npm run test:clinpm run test --workspace=@openclaw-manager/backend -- gatewayService.test.tsnpm run test --workspace=@openclaw-manager/web -- src/modules/gateway/__tests__/GatewayPage.test.tsxnpm run test --workspace=@openclaw-manager/webnpm run build:backendnpm run buildgit diff --checkhttp://127.0.0.1:17223/gateway, including diagnostics navigation and recovery after an induced gateway process stop.Screenshots
Browser Use verified the Gateway UI locally: the page shows
守护: 自动重启已启用,状态: 健康, and the restart count increasing after a simulated gateway crash. No screenshot asset is committed to the repository.