The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(plugins): say that in-process dashboard handlers must not block
unsupportedpastelsf42db876551f
diff --git a/website/docs/user-guide/features/extending-the-dashboard.md b/website/docs/user-guide/features/extending-the-dashboard.mdindex b9614efbbf7..9be238716e1 100644--- a/website/docs/user-guide/features/extending-the-dashboard.md+++ b/website/docs/user-guide/features/extending-the-dashboard.md@@ -749,6 +749,16 @@ Routes are mounted under `/api/plugins/<name>/`, so the above becomes:Plugin API routes sit behind the dashboard's normal auth gate — unauthenticated requests get a `401` before the plugin route runs, and requests to a disabled plugin's routes are rejected at request time. Still, **don't expose the dashboard on a public interface with `--host 0.0.0.0` if you run untrusted plugins** — an authenticated session can reach their routes too.+#### Don't block the event loop++With the default `plugins.isolation: in_process`, API handlers run on the gateway's event loop, the same+loop that answers every other dashboard, Desktop and chat request. A handler that blocks (`time.sleep`, a+synchronous HTTP client, a long file scan) holds all of them until it returns: a handler sleeping 3 s+delays an unrelated `/api/status` by seconds and can time out Desktop's connection. Use `async def` with+async I/O, or move blocking work off the loop with `await asyncio.to_thread(...)` (a plain `def` handler+also runs in a worker thread). `plugins.isolation: host` runs the handlers in a separate process+([plugin host](plugins.md#running-plugins-out-of-process-pluginsisolation)).+#### Accessing Hermes internalsBackend routes run inside the dashboard process, so they can import from the hermes-agent codebase directly:diff --git a/website/docs/user-guide/features/plugins.md b/website/docs/user-guide/features/plugins.mdindex 62ab0959534..397ee25b933 100644--- a/website/docs/user-guide/features/plugins.md+++ b/website/docs/user-guide/features/plugins.md@@ -834,6 +834,8 @@ Plugins do not change. They receive the same `ctx` and register tools, hooks, slprovider objects (image/video generation, web search, browser, TTS/STT, memory, context engines,model-provider profiles) exactly as before; Hermes registers matching entries on its side that call intothe host. Dashboard plugin APIs are served by the host too. Bundled plugins keep running in-process.+In-process dashboard API handlers share the gateway's event loop, so they must not block it (see+[Don't block the event loop](extending-the-dashboard.md#dont-block-the-event-loop)).On a gateway serving several profiles, every profile other than the one the gateway started with runsits own dashboard plugins (installed under its own `plugins/` folder or the root `~/.hermes/plugins/`,