-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(openclaw-plugin): add hooks.allowPromptInjection config to all installation methods #763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -239,6 +239,7 @@ curl -X POST http://localhost:1933/api/v1/admin/accounts/my-team/users \ | |
|
|
||
| ```bash | ||
| openclaw plugins enable openviking | ||
| openclaw config set plugins.entries.openviking.hooks.allowPromptInjection true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Design] (blocking) 同 INSTALL.md:202 - 需要在文档中说明配置的作用。另外,建议在 Troubleshooting 章节添加相关内容,帮助用户理解这个配置。 |
||
| openclaw config set gateway.mode local | ||
| openclaw config set plugins.slots.contextEngine openviking | ||
| openclaw config set plugins.entries.openviking.config.mode remote | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -377,6 +377,7 @@ function Configure-OpenClawPlugin { | |
| # Enable plugin (files already deployed to extensions dir by Deploy-Plugin) | ||
| openclaw plugins enable openviking | ||
| if ($LASTEXITCODE -ne 0) { throw "openclaw plugins enable failed (exit code $LASTEXITCODE)" } | ||
| openclaw config set plugins.entries.openviking.hooks.allowPromptInjection true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Design] (blocking) 同 install.sh:626 - 配置的必要性和正确性无法验证。整个 OpenViking 代码库中没有任何 |
||
| openclaw config set plugins.slots.contextEngine openviking | ||
|
|
||
| # Set gateway mode | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -623,6 +623,7 @@ configure_openclaw_plugin() { | |
|
|
||
| # Enable plugin (files already deployed to extensions dir by deploy_plugin) | ||
| "${oc_env[@]}" openclaw plugins enable openviking || { err "$(tr "openclaw plugins enable failed" "openclaw 插件启用失败")"; exit 1; } | ||
| "${oc_env[@]}" openclaw config set plugins.entries.openviking.hooks.allowPromptInjection true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Design] (blocking) 配置必要性无法验证: 发现:
需要验证:
如果配置确实必要,需要在 OpenViking 文档中说明其作用和必要性。 |
||
| "${oc_env[@]}" openclaw config set plugins.slots.contextEngine openviking | ||
|
|
||
| # Set gateway mode | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -654,6 +654,9 @@ async function configureOpenClawPlugin(pluginPath = PLUGIN_DEST) { | |
| if (enableResult.code !== 0) throw new Error(`openclaw plugins enable failed (exit code ${enableResult.code})`); | ||
| await oc(["config", "set", "plugins.slots.contextEngine", "openviking"]); | ||
|
|
||
| // Enable prompt injection hooks (required for auto-recall feature) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Design] (blocking) 同 install.sh:626 - 配置的必要性和正确性无法验证。建议先通过实际测试确认:在没有这个配置的情况下,auto-recall 功能是否真的无法工作? |
||
| await oc(["config", "set", "plugins.entries.openviking.hooks.allowPromptInjection", "true"]); | ||
|
|
||
| // Set gateway mode | ||
| await oc(["config", "set", "gateway.mode", "local"]); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Design] (blocking)
同 install.sh:626 - 如果这个配置确实必要,需要在文档中添加说明: