Release 0.5.59
Fixed
- Gateway restart loop (issue #95): when the agent or user ran
openclaw gateway restart, the supervisor loop detected the old PID exiting and immediately spawned a second gateway instance, which collided with the already-restarted one and looped with "another gateway instance is already listening". The supervisor now detects a self-restart (new PID already running on the same port) and re-tracks it instead of spawning a duplicate. - Remote mode URL not propagated (issue #93):
start_openclaw_runtimewas readinggateway.remote.urlback viaopenclaw config get, which can time out (2 s limit at startup) or return an empty/redacted result. The function now uses$GATEWAY_REMOTE_URLdirectly from the already-parsed add-on options, which is the same value the config helper writes toopenclaw.json. - Terminal CLI unreachable in tailnet mode (issue #90): when
gateway_bind_mode=tailnet(oraccess_mode=tailnet_https), the gateway binds only to the Tailscale IP. The local CLI always connects viaws://127.0.0.1:PORT, causing "Gateway not running" inside the add-on terminal. A lightweight loopback relay (Node.js) is now started automatically to forward127.0.0.1:PORT → TAILSCALE_IP:PORT, making all terminal CLI commands work normally. Token auth is still enforced end-to-end by the gateway.
Added
- MCP auto-configuration for Home Assistant: new option
auto_configure_mcp(default:false). When enabled andhomeassistant_tokenis set, the add-on automatically registers Home Assistant as an MCP server (mcporter config add HA ...) on startup. Auto-detects the HA API URL (supervisor proxy or localhost:8123). Re-configures only when the token changes. - Landing page: new collapsible MCP setup section with automatic and manual setup instructions, post-upgrade refresh command, and model tips.
- DOCS: new MCP Integration guide covering automatic/manual setup, verification, model requirements, and troubleshooting.
Changed
- Bump OpenClaw to 2026.3.9.
Full Changelog: v0.5.58...v0.5.59