fix(#707): declare allowConversationAccess in plugin manifest#727
Open
jlin53882 wants to merge 1 commit intoCortexReach:masterfrom
Open
fix(#707): declare allowConversationAccess in plugin manifest#727jlin53882 wants to merge 1 commit intoCortexReach:masterfrom
jlin53882 wants to merge 1 commit intoCortexReach:masterfrom
Conversation
Add hooks.allowConversationAccess: true to openclaw.plugin.json so OpenClaw auto-grants the permission at plugin load time. Non-bundled plugins must opt-in to use conversation-accessing typed hooks (agent_end, llm_input, llm_output, before_agent_finalize). Without this flag the hooks are silently blocked, causing smartExtraction and memoryReflection to fail with no user-facing error. Fixes: CortexReach#707
Contributor
Author
|
5.X 以上 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
在
openclaw.plugin.json中宣告hooks.allowConversationAccess: true,解決 non-bundled plugin 模式下agent_endhook 被靜默阻擋的問題。適用版本
OpenClaw 4.24 起,非 bundled plugins 若要使用對話存取型 hooks(
agent_end、llm_input、llm_output、before_agent_finalize),必須主動宣告allowConversationAccess: true,否則 hooks 會被靜默 drop,導致smartExtraction和memoryReflection完全失效。4.24 以下版本不要套用此修復,相容性機制不存在,套用後 plugin 可能無法正常載入或行為異常。
修復內容
openclaw.plugin.json新增:{ "hooks": { "allowConversationAccess": true } }讓 OpenClaw 在 plugin load 時自動授予權限,使用者無需手動修改
openclaw.json。驗證方式
gateway.err.log中不再出現typed hook "agent_end" blocked警告smartExtraction和memoryReflection正常運作關聯 Issue