From 762b49eaf45fecf2f8346ca051fdb51f0a572b4a Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Wed, 11 Nov 2026 00:07:30 +0100 Subject: [PATCH] fix(rhema-code): indent list items' paragraphs in the transcript MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The markdown renderer tracked list depth only to pick a marker. A paragraph that follows a blank row inside an item started at column 0, so a tool's catalog lines and its "Where it runs" paragraph read as text after the list rather than part of the bullet. `rhema system show` previews the prompt through this renderer, which is where it showed. An item now records its content column, marker width included, and a row the renderer starts inside one is padded to it. The paragraph that introduces a sublist keeps it attached: the blank row the paragraph asks for at its end is taken back, the hug a sublist already got when no lead-in preceded it. The tool sections put a blank row between the row and its description so the description is a paragraph of the item — the shape the indent applies to, where a soft break would have joined it to the schema. --- crates/rhema-claw/SYSTEM.md | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/rhema-claw/SYSTEM.md b/crates/rhema-claw/SYSTEM.md index 6fb451b..530cf66 100644 --- a/crates/rhema-claw/SYSTEM.md +++ b/crates/rhema-claw/SYSTEM.md @@ -24,6 +24,7 @@ what it is for. The arguments are the JSON schema a call must satisfy. {% for tool in tools %} - {{ tool.name }} | {{ tool.parameters | json }} + {{ tool.description | indent(2, true) }} {% endfor %} {% endif %}