v1.1.2
Install:
pi install git:github.com/edxeth/pi-ralph-loop@v1.1.2Or latest:
pi install git:github.com/edxeth/pi-ralph-loop🐛 Bug Fixes
Fresh Ralph iterations keep the loop’s selected model and thinking level
Refs: 6153ed8
Ralph loops that hand off to a fresh session now preserve the model provider, model id, and thinking level owned by the active loop. If another Pi session changes models while Ralph is running, the next Ralph iteration no longer inherits that unrelated model selection.
This also applies when resuming or restarting a loop. Ralph records the model fields in .ralph/loop.md as model_provider, model_id, and thinking_level, then restores them before sending the next fresh-iteration prompt. If the saved model is unavailable or cannot be selected in the current Pi instance, Ralph stops the loop with a clear error instead of silently continuing on the wrong model.
The fresh-session handoff now uses Pi’s replacement-session API correctly after ctx.newSession(), avoiding stale extension API objects during iteration transitions.