Commit 4ecfba4
committed
fix(openclaw-plugin): read allowPromptInjection from plugin config (fixes #1383 bug 3)
Previously, allowPromptInjection was only read from the framework's
hooks config (plugins.entries.<id>.hooks.allowPromptInjection). Users
who set it in the plugin's own config block had no effect.
Now reads from both locations — setting allowPromptInjection: false in
either the plugin config or the hooks config will disable auto-recall.
Also adds the property to the MemosLocalConfig type and configSchema.1 parent 45f4c1b commit 4ecfba4
File tree
3 files changed
+11
-1
lines changed- apps/memos-local-openclaw
- src
3 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| 354 | + | |
| 355 | + | |
354 | 356 | | |
355 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
356 | 360 | | |
357 | 361 | | |
358 | 362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
327 | 329 | | |
328 | 330 | | |
329 | 331 | | |
| |||
0 commit comments