You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The admin UI's Gateway Controls section only shows a "Restart Gateway" button with static text. There's no indication of whether the gateway is actually running, starting, or stopped.
This makes it hard to diagnose issues — for example, the sync endpoint returns 500 when the gateway isn't running (#207), but the admin UI gives no visual clue that the gateway is down. You have to check logs to understand what's happening.
After clicking "Restart Gateway", there's also no feedback on whether the restart succeeded. The button shows "Restarting..." briefly during the API call, but the restart is fire-and-forget (waitUntil) so the client never learns the outcome.
Proposal
Add a gateway status indicator and improve the controls:
New endpointGET /api/admin/gateway/status returning process state (running / starting / stopped) using the existing findExistingMoltbotProcess() + a quick port check
Status badge next to "Gateway Controls" header — green "Running" / yellow "Starting" / red "Stopped"
Context-aware button — show "Start Gateway" when stopped, "Restart Gateway" when running
Post-restart polling — after restart, poll status until gateway is ready (or timeout with error)