Skip to content

Commit cdff4ed

Browse files
committed
fix(openclaw-ryzome): add openclaw-ryzome to plugins.allow during setup (fixes RYZ-1558)
1 parent 7dedab6 commit cdff4ed

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • packages/openclaw-ryzome/src

packages/openclaw-ryzome/src/cli.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ export function registerCliSetup(api: OpenClawPluginApi): void {
251251
).trim();
252252

253253
const current = api.runtime.config.loadConfig();
254+
const allow = current.plugins?.allow ?? [];
255+
const nextAllow = allow.includes("openclaw-ryzome")
256+
? allow
257+
: [...allow, "openclaw-ryzome"];
254258
const entries = (current.plugins?.entries ?? {}) as Record<
255259
string,
256260
RyzomePluginEntry | undefined
@@ -271,6 +275,7 @@ export function registerCliSetup(api: OpenClawPluginApi): void {
271275
...current,
272276
plugins: {
273277
...current.plugins,
278+
allow: nextAllow,
274279
entries: {
275280
...entries,
276281
"openclaw-ryzome": nextEntry,

0 commit comments

Comments
 (0)