From 2903b090a19340da0f226e4d9195515c69f14bb3 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 27 Nov 2026 09:51:00 -0500 Subject: [PATCH] fix(8139): the carried lines go to the after phase without a trailing newline Co-Authored-By: Claude Opus 5.5 --- plugin/.claude-plugin/plugin.json | 2 +- plugin/hooks/grimoire_shape_check.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/.claude-plugin/plugin.json b/plugin/.claude-plugin/plugin.json index 708c1ccb..07a1c6f3 100644 --- a/plugin/.claude-plugin/plugin.json +++ b/plugin/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "grimoire", "description": "Grimoire for Claude Code: connects the grimoire MCP server, adds the hooks that deliver live project state and relevant records at the right moment, ships the shared client-neutral Grimoire skills (using-grimoire, writing-plans, reporting-back, systematic-debugging, verification, brainstorming, reusing-code, shape-accounting, family-canon), and syncs your saved Grimoire Processes as skills (/grimoire:sync).", - "version": "2026.11.27.1440", + "version": "2026.11.27.1451", "author": { "name": "Bryan Van Deusen" }, diff --git a/plugin/hooks/grimoire_shape_check.sh b/plugin/hooks/grimoire_shape_check.sh index 3434f660..68014d13 100644 --- a/plugin/hooks/grimoire_shape_check.sh +++ b/plugin/hooks/grimoire_shape_check.sh @@ -116,7 +116,8 @@ if [ -s "$asked_file" ] || [ -s "$asked_earlier_file" ]; then asked_q="&written=${asked_enc}" fi if [ -s "$asked_earlier_file" ]; then - prior_enc=$(_unique "$asked_earlier_file" | grimoire_urlenc) || prior_enc="" + prior=$(_unique "$asked_earlier_file") + prior_enc=$(printf '%s' "$prior" | grimoire_urlenc) || prior_enc="" [ -n "$prior_enc" ] && asked_q="${asked_q}&earlier=${prior_enc}" fi if after=$(curl -fsS --max-time 4 \