Skip to content

v1.2.1

Choose a tag to compare

@edxeth edxeth released this 28 Jun 21:19

Install:

pi install git:github.com/edxeth/pi-ralph-loop@v1.2.1

Or latest:

pi install git:github.com/edxeth/pi-ralph-loop

πŸ› Bug Fixes

Loop prompts no longer get corrupted by --- delimiters in bundle item text

Refs: 8c09222

Ralph persists its loop state in .ralph/loop.md frontmatter, including a bundle_items_snapshot string that holds a JSON snapshot of the bundle items. When an item's description contained a markdown --- horizontal rule, the state parser mistook that delimiter text inside the serialized value for the closing frontmatter delimiter. On the next read it split at the wrong place, so the serialized snapshot fragment (bundle_items_snapshot, git_head, item text, etc.) leaked into later iteration prompts as if it were the task body.

Ralph now writes state strings as JSON-escaped scalars, so a --- inside a value can never be confused with a real delimiter line. Frontmatter parsing and task-body extraction now go through one shared parser that only treats a complete --- line as the boundary. Legacy state files written by older versions still load correctly, and raw Windows session paths such as C:\new\table\session.jsonl are preserved during upgrade rather than being rewritten by JSON escape handling.

This keeps each iteration receiving only the clean bundle prompt body, even when the bundle content itself contains frontmatter-style delimiter lines.