feat: gateway control panel — start, stop, restart, diagnose#552
Merged
Conversation
Add a gateway management panel accessible from the local mode banner's "Configure Gateway" button. Works in local mode (was previously blocked with "requires gateway" message). - New POST /api/gateways/control endpoint for gateway lifecycle actions - Supports both Hermes (hermes gateway start/stop/restart, hermes doctor) and OpenClaw (openclaw gateway start/stop/restart, openclaw doctor) - Gateway status detection: Hermes via PID file, OpenClaw via health probe - GatewayControlPanel: shows installed gateways with status, controls, and command output display - Local mode: "Configure Gateway" button now opens the control panel instead of showing "requires gateway" error - i18n keys added for all 10 locales
📸 Screenshot Drift CheckThis PR modifies UI source files. Please verify whether the README screenshots need refreshing:
Changed UI filesSee This comment is posted automatically and can be dismissed if no visual changes occurred. |
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.
Summary
The "Configure Gateway" button in the local mode banner was a dead end — it navigated to a panel that said "requires gateway connection." Now it opens a gateway control panel that works regardless of connection state.
What changed
New
POST /api/gateways/controlendpoint:{ gateway: 'hermes', action: 'start' }— runshermes gateway start{ gateway: 'hermes', action: 'stop' }— runshermes gateway stop{ gateway: 'hermes', action: 'restart' }— runshermes gateway restart{ gateway: 'hermes', action: 'diagnose' }— runshermes doctoropenclawgatewayGETreturns status of all installed gateways (running/stopped, PID, port)New
GatewayControlPanelcomponent:Routing fix:
gatewayspanel in local mode now rendersGatewayControlPanelinstead of "requires gateway" errorMultiGatewayPanel(unchanged)Test plan
pnpm typecheck— passespnpm test— 892/892 pass