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
{{ message }}
Repository navigation
Commit 1399ca5
Browse filesBrowse the repository at this point in the historyBrowse files
- Agents/compaction: trigger overflow recovery from the tool-result guard once post-compaction context still exceeds the safe threshold, so long tool loops compact before the next model call hard-fails. (#29371) thanks @keshav55.
118
118
- macOS/exec approvals: harden exec-host request HMAC verification to use a timing-safe compare and keep malformed or truncated signatures fail-closed in focused IPC auth coverage.
119
119
- Gateway/exec approvals: surface requested env override keys in gateway-host approval prompts so operators can review surviving env context without inheriting noisy base host env.
120
+
- Plugins/subagents: forward per-run provider and model overrides through gateway plugin subagent dispatch so plugin-launched agent delegations honor explicit model selection again. (#48277) Thanks @jalehman.
Copy file name to clipboardExpand all lines: docs/gateway/configuration-reference.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2419,6 +2419,8 @@ See [Local Models](/gateway/local-models). TL;DR: run MiniMax M2.5 via LM Studio
2419
2419
-`plugins.entries.<id>.apiKey`: plugin-level API key convenience field (when supported by the plugin).
2420
2420
-`plugins.entries.<id>.env`: plugin-scoped env var map.
2421
2421
-`plugins.entries.<id>.hooks.allowPromptInjection`: when `false`, core blocks `before_prompt_build` and ignores prompt-mutating fields from legacy `before_agent_start`, while preserving legacy `modelOverride` and `providerOverride`. Applies to native plugin hooks and supported bundle-provided hook directories.
2422
+
-`plugins.entries.<id>.subagent.allowModelOverride`: explicitly trust this plugin to request per-run `provider` and `model` overrides for background subagent runs.
2423
+
-`plugins.entries.<id>.subagent.allowedModels`: optional allowlist of canonical `provider/model` targets for trusted subagent overrides. Use `"*"` only when you intentionally want to allow any model.
2422
2424
-`plugins.entries.<id>.config`: plugin-defined config object (validated by native OpenClaw plugin schema when available).
2423
2425
- Enabled Claude bundle plugins can also contribute embedded Pi defaults from `settings.json`; OpenClaw applies those as sanitized agent settings, not as raw OpenClaw config patches.
2424
2426
-`plugins.slots.memory`: pick the active memory plugin id, or `"none"` to disable memory plugins.
Copy file name to clipboardExpand all lines: docs/tools/plugin.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -862,6 +862,26 @@ Notes:
862
862
- Returns `{ text: undefined }` when no transcription output is produced (for example skipped/unsupported input).
863
863
-`api.runtime.stt.transcribeAudioFile(...)` remains as a compatibility alias.
864
864
865
+
Plugins can also launch background subagent runs through `api.runtime.subagent`:
866
+
867
+
```ts
868
+
const result =awaitapi.runtime.subagent.run({
869
+
sessionKey: "agent:main:subagent:search-helper",
870
+
message: "Expand this query into focused follow-up searches.",
871
+
provider: "openai",
872
+
model: "gpt-4.1-mini",
873
+
deliver: false,
874
+
});
875
+
```
876
+
877
+
Notes:
878
+
879
+
-`provider` and `model` are optional per-run overrides, not persistent session changes.
880
+
- OpenClaw only honors those override fields for trusted callers.
881
+
- For plugin-owned fallback runs, operators must opt in with `plugins.entries.<id>.subagent.allowModelOverride: true`.
882
+
- Use `plugins.entries.<id>.subagent.allowedModels` to restrict trusted plugins to specific canonical `provider/model` targets, or `"*"` to allow any target explicitly.
883
+
- Untrusted plugin subagent runs still work, but override requests are rejected instead of silently falling back.
884
+
865
885
For web search, plugins can consume the shared runtime helper instead of
0 commit comments