Skip to content

Commit c45ec3d

Browse files
committed
fix(config): register bundledMode in zod schema and help text
Addresses review feedback: adds bundledMode to the strict plugins zod object so the config option passes validation, and adds schema.help documentation for the field.
1 parent d2dabde commit c45ec3d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/config/schema.help.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,8 @@ export const FIELD_HELP: Record<string, string> = {
12081208
'Select the active memory plugin by id, or "none" to disable memory plugins.',
12091209
"plugins.slots.contextEngine":
12101210
"Selects the active context engine plugin by id so one plugin provides context orchestration behavior.",
1211+
"plugins.bundledMode":
1212+
'Controls whether bundled plugins bypass plugins.allow on runtime discovery paths. "compat" (default) preserves legacy behavior where bundled provider plugins are force-loaded on every chat turn. "respect-allow" gates bundled plugins by the allowlist the same way third-party plugins are gated.',
12111213
"plugins.entries":
12121214
"Per-plugin settings keyed by plugin ID including enablement and plugin-specific runtime configuration payloads. Use this for scoped plugin tuning without changing global loader policy.",
12131215
"plugins.entries.*.enabled":

src/config/zod-schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,7 @@ export const OpenClawSchema = z
10591059
.strict()
10601060
.optional(),
10611061
entries: z.record(z.string(), PluginEntrySchema).optional(),
1062+
bundledMode: z.enum(["compat", "respect-allow"]).optional(),
10621063
})
10631064
.strict()
10641065
.optional(),

0 commit comments

Comments
 (0)