Skip to content

fix(#707): declare allowConversationAccess in plugin manifest#727

Open
jlin53882 wants to merge 1 commit intoCortexReach:masterfrom
jlin53882:fix/issue707-allow-conversation-access
Open

fix(#707): declare allowConversationAccess in plugin manifest#727
jlin53882 wants to merge 1 commit intoCortexReach:masterfrom
jlin53882:fix/issue707-allow-conversation-access

Conversation

@jlin53882
Copy link
Copy Markdown
Contributor

@jlin53882 jlin53882 commented Apr 30, 2026

摘要

openclaw.plugin.json 中宣告 hooks.allowConversationAccess: true,解決 non-bundled plugin 模式下 agent_end hook 被靜默阻擋的問題。

適用版本

⚠️ OpenClaw 4.24+ 才需要此修復。

OpenClaw 4.24 起,非 bundled plugins 若要使用對話存取型 hooks(agent_endllm_inputllm_outputbefore_agent_finalize),必須主動宣告 allowConversationAccess: true,否則 hooks 會被靜默 drop,導致 smartExtractionmemoryReflection 完全失效。

4.24 以下版本不要套用此修復,相容性機制不存在,套用後 plugin 可能無法正常載入或行為異常。

修復內容

openclaw.plugin.json 新增:

{
  "hooks": {
    "allowConversationAccess": true
  }
}

讓 OpenClaw 在 plugin load 時自動授予權限,使用者無需手動修改 openclaw.json

驗證方式

  1. 安裝此版本 plugin 至 OpenClaw 4.24+
  2. 確認 gateway.err.log 中不再出現 typed hook "agent_end" blocked 警告
  3. 確認 smartExtractionmemoryReflection 正常運作

關聯 Issue

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
@jlin53882
Copy link
Copy Markdown
Contributor Author

jlin53882 commented May 4, 2026

5.X 以上
也需要 "hooks": {
"timeouts": {
"before_prompt_build": 60000
}
+ PR#742 的內容

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] agent_end hook blocked in OpenClaw — smartExtraction and memoryReflection silently fail

1 participant