fix(auto-reply): gate inline skill tool dispatch [AI]#78517
fix(auto-reply): gate inline skill tool dispatch [AI]#78517pgondhi987 merged 8 commits intoopenclaw:mainfrom
Conversation
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: yes. source-reproducible: current main's inline skill tool path calls tool.execute directly, while the documented hook contract and runtime wrapper define block and parameter-rewrite behavior. I did not run a live channel repro in this read-only review. Real behavior proof Next step before merge Security Review findings
Review detailsBest possible solution: Land one maintained fix that routes inline skill tool dispatch through existing tool-policy and before_tool_call enforcement with target-session context, changelog coverage, and real terminal/log or live-channel proof. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main's inline skill tool path calls tool.execute directly, while the documented hook contract and runtime wrapper define block and parameter-rewrite behavior. I did not run a live channel repro in this read-only review. Is this the best way to solve the issue? Yes for the implementation shape: using the existing hook wrapper with target-session context is the narrow maintainable seam. It is not merge-ready until proof, changelog coverage, and maintainer selection against the overlapping PR are resolved. Full review comments:
Overall correctness: patch is correct What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 2d65ead914c7. |
|
Not applicable; changelog is handled at merge time. Quoted comment from @clawsweeper:
Re-review progress:
|
# Conflicts: # src/agents/openclaw-tools.ts
* fix: enforce tool hooks for inline skill dispatch * addressing claude review * addressing codex review * addressing codex review * fix: complete root-cause handling * docs: add changelog entry for PR merge
* fix: enforce tool hooks for inline skill dispatch * addressing claude review * addressing codex review * addressing codex review * fix: complete root-cause handling * docs: add changelog entry for PR merge
* fix: enforce tool hooks for inline skill dispatch * addressing claude review * addressing codex review * addressing codex review * fix: complete root-cause handling * docs: add changelog entry for PR merge
Summary
AI-assisted: yes.
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
src/auto-reply/reply/get-reply-inline-actions.skip-when-config-empty.test.ts.Root Cause (if applicable)
tool.executedirectly after owner-only filtering.Regression Test Plan (if applicable)
src/auto-reply/reply/get-reply-inline-actions.skip-when-config-empty.test.tsUser-visible / Behavior Changes
Inline skill tool commands can now return a blocked-tool reply when a configured tool hook denies the call. No config changes are required.
Diagram (if applicable)
Security Impact (required)
Yes/No): NoYes/No): NoYes/No): NoYes/No): YesYes/No): NoYes, explain risk + mitigation: inline skill tool dispatch now applies existing hook decisions before execution; this reduces policy inconsistency without adding new tool capabilities.Repro + Verification
Environment
Steps
tool.handleInlineActionsfor an authorized sender.Expected
Actual
Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
Review Conversations
Compatibility / Migration
Yes/No): YesYes/No): NoYes/No): NoRisks and Mitigations