Restart API
Overview
mouaif runs as a small supervisor that keeps a worker process alive. Restarting replaces the worker, so server-side code and settings are reloaded, while the supervisor, and the terminal you started it from, keep running.
Usage
In a chat, ask the assistant to restart the app, or send
@restart_app. See Restart from chat.From a script, send an authenticated
POSTto/api/restarton the running server:
curl -X POST http://127.0.0.1:5732/api/restart
When access authentication is on, add -u <user>:<password>. The page reconnects on its own once the new worker is up.
Related
Restart from chat — the
restart_apptool and its approval modes.CLI commands —
mouaif serveand its--watchoption.