Open rates count only deliveries whose plugin reports opens; a rule with triggers holds only the acts they match #227

Merged
bvandeusen merged 3 commits from dev into main 2026-11-23 16:12:36 -05:00
Showing only changes of commit 2794fd97f0 - Show all commits
+3 -1
View File
@@ -871,7 +871,9 @@ grimoire_config() {
# Sent as `X-Grimoire-Plugin` on every request. The server keeps it on each
# rule line it delivers, and counts a line toward a rule's open rate only
# when it is there: a plugin that sends it also reports every open, so a
# line without it is one whose opens were never going to be heard.
# line without it is one whose opens were never going to be heard. The hooks
# that source this file read it, which shellcheck cannot see from here.
# shellcheck disable=SC2034
plugin_version=$(sed -n 's/^ *"version": *"\([^"]*\)".*/\1/p' \
"$(dirname "${BASH_SOURCE[0]}")/../.claude-plugin/plugin.json" 2>/dev/null | head -n 1)
[ -n "$url" ] && [ -n "$token" ]