Skip to content

Commit 9b4b696

Browse files
vincentkocBeandon13
andcommitted
docs(plugins): clarify hook runtime startup
Co-authored-by: Brandon Zarnitz <[email protected]>
1 parent 4afe580 commit 9b4b696

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

‎docs/cli/plugins.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ For runtime hook debugging:
401401

402402
- `openclaw plugins inspect <id> --runtime --json` shows registered hooks and diagnostics from a module-loaded inspection pass. Runtime inspection never installs dependencies; use `openclaw doctor --fix` to clean legacy dependency state or recover missing downloadable plugins that are referenced by config.
403403
- `openclaw gateway status --deep --require-rpc` confirms the reachable Gateway URL/profile, service/process hints, config path, and RPC health.
404+
- If a hook-only plugin is absent from runtime inspection, confirm its [hook startup intent](/tools/plugin#plugin-hooks): either manifest `activation.onCapabilities: ["hook"]` with explicit plugin enablement, or a startup-signaling `plugins.entries.<id>.hooks` policy such as `allowConversationAccess: true`. Global disable, deny, and restrictive allowlists still win.
404405
- Non-bundled conversation hooks (`before_model_resolve`, `agent_turn_prepare`, `before_prompt_build`, `before_agent_reply`, `llm_input`, `llm_output`, `before_agent_run`, `before_agent_finalize`, `agent_end`) require `plugins.entries.<id>.hooks.allowConversationAccess=true`.
405406

406407
### Plugin index

‎docs/tools/plugin.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,19 @@ Plugin-managed internal hooks show up in `openclaw hooks list` with
258258
`plugin:<id>`. You cannot enable or disable them through `openclaw hooks`;
259259
enable or disable the plugin instead.
260260

261+
Hook registration also depends on Gateway startup selection. For a hook-only
262+
plugin, declare `activation.onCapabilities: ["hook"]` in
263+
`openclaw.plugin.json`, then enable the plugin and include it in
264+
`plugins.allow` when that allowlist is configured. The manifest hint does not
265+
bypass global disable, deny, or per-plugin enablement policy.
266+
267+
An explicit hook policy is also startup intent. For example,
268+
`plugins.entries.<id>.hooks.allowConversationAccess: true` both authorizes
269+
non-bundled conversation hooks and selects that configured plugin for Gateway
270+
startup; normal plugin policy still applies. After changing manifest or hook
271+
policy, restart the Gateway and verify the registration with
272+
`openclaw plugins inspect <id> --runtime --json`.
273+
261274
## Verify the active Gateway
262275

263276
`openclaw plugins list` and plain `openclaw plugins inspect` read cold config,

0 commit comments

Comments
 (0)