Skip to content

The agent that grows with you

docs(plugins): say CLI plugin commands get the session id and how Ctrl+C stops the wait

unsupportedpastels5ba46cd4b24b
diff --git a/website/docs/user-guide/features/plugins.md b/website/docs/user-guide/features/plugins.md
index bab8fdbb449..290fc600b37 100644
--- a/website/docs/user-guide/features/plugins.md
+++ b/website/docs/user-guide/features/plugins.md
@@ -125,7 +125,9 @@ A `/command` registered with `ctx.register_command()` runs in the gateway proces
- **Return its text** instead of calling `print()`. Printed output goes to the gateway's stdout, not to the user's chat.
- **Read the session's working directory with `agent.runtime_cwd.resolve_agent_cwd()`**, not `os.getcwd()`, which is the gateway's own directory. The gateway pins the session's directory while the handler runs.
-- **Read session identity with `gateway.session_context.get_session_env("HERMES_SESSION_PLATFORM")`** (and the other `HERMES_SESSION_*` names), not `os.environ`. These values are bound per session around the handler.
+- **Read session identity with `gateway.session_context.get_session_env("HERMES_SESSION_PLATFORM")`** (and the other `HERMES_SESSION_*` names, such as `HERMES_SESSION_ID` and `HERMES_SESSION_KEY`), not `os.environ`. These values are bound per session around the handler, so a background job the handler starts records the session as its parent.
+
+The classic CLI waits for the reply for as long as the handler runs. Ctrl+C stops the wait, not the handler: the handler finishes in the gateway, its reply is not shown, and the CLI's next gateway request waits until the handler returns.
See [Register slash commands](../../developer-guide/plugins/index.md#register-slash-commands).
:::