fix: split pipe-separated GroupMe PreToolUse matchers #178
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/claude-custom!178
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "166-split-groupme-pretooluse-matchers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Pipe-separated PreToolUse matchers silently swallow
permissionDecision: "ask"in--dangerously-skip-permissionsmode. This splits the single GroupMe entry into three separate PreToolUse entries so each tool fires the approval prompt correctly.Changes
settings.json-- Splitmcp__groupme__send_message|mcp__groupme__add_member|mcp__groupme__remove_memberinto three separate PreToolUse entries, each with its own matcher and the sameblock-groupme-send.shhook commandhooks/block-groupme-send.sh-- Updated comment header to document the split pattern and reference #166Audit of Other Pipe-Separated Matchers
Write|Edit|NotebookEdit(line 81):block-claude-custom-main-edit.shreturnsdeny,check-issue.shusesexit 2. Neither returnsask. No split needed.mcp__forgejo__create_issue|mcp__forgejo__create_issue_and_branch(line 130):check-issue-template.shreturnsdeny,check-domain-label.shreturnsallow. Neither returnsask. No split needed.Test Plan
mcp__groupme__send_message,mcp__groupme__add_member,mcp__groupme__remove_memberfires the approval prompt in--dangerously-skip-permissionsmodesettings.jsonis valid JSON (validated during implementation)Review Checklist
permissionDecision: "ask"use separate entriessettings.jsonvalidates as valid JSONRelated Notes
convention-hook-matcher-patternis called out in the issue but owned by pal-e-docs (out of scope for this repo PR)Related
QA Review
Scope: 2 files, +22/-2. Config-only change with a comment update.
Findings
settings.json
block-groupme-send.shhook -- correct, the script'scasestatement already handles each tool name independentlyWrite|Edit|NotebookEditandcreate_issue|create_issue_and_branchdocumented in PR body with sound reasoning (they returndeny/allow, notask)hooks/block-groupme-send.sh
Nits
None.
VERDICT: APPROVE