mirror of
https://github.com/wassname/pi-goals.git
synced 2026-08-11 11:23:24 +08:00
v2 injected the entire plan.md on every turn. pi-tasks tried that and deleted it -- "wallpaper noise that trains the model to ignore the task block" (CHANGELOG.md:149) -- so follow them: one transient user message via the context hook, never persisted, and only when the plan went untouched for 2 turns. Editing the plan resets the clock, the way a task tool call resets theirs. Session start and session_compact push the WHOLE file back instead, which is where the settled context is actually needed (pi-goal-x does the same with its post-compaction resync). That makes an unlimited appendix free: everything under ## Log is durable memory, not working set. Also: the drafting prompt is sent once with the /goals seed instead of every turn (that re-arming is why plan mode read as never-ending), the review menu gains "Open in $EDITOR" and loops like pi-plan's, and the widget shows the active goal's open subtasks so the plan is visibly the task list. Drops the stale-copy stripping hook, which a non-persisted injection doesn't need. Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>