Skip to content

v0.7.2 — Eval P1 fixes: prompt fidelity, multi-process safety, tool validation

Choose a tag to compare

@jkrandom-sudo jkrandom-sudo released this 26 Jul 09:12
· 23 commits to main since this release
639eb3d

opencode-plugin-loop 0.7.2

Patch release fixing the three P1 findings from the OpenCode vs Claude Code /loop comparison eval (L10/L11/L14), plus a small command addition.

Bug fixes

  • LOOP-001 — prompt fidelity: scheduling flags (--once, --all, --jitter=*) are now parsed only in the option prefix before the prompt begins, and -- terminates flag parsing. The prompt is kept as the original substring, so flag-like text, whitespace, and newlines in the body are preserved verbatim (previously silently stripped — eval L14).
  • LOOP-002 — multi-process task safety: tasks record ownerPid/ownerStartedAt. Store load drops only tasks whose owner process is confirmed dead (signal-0 probe, conservative on probe errors) instead of tombstoning everything written by a different live process. The instance lock now only serializes same-process plugin instances (shouldFire), so a second OpenCode process in the same project fires its own tasks instead of starving (eval L11).
  • LOOP-003 — tool entry validation: a shared validateFixedInterval (≥ 1000ms) is now used by the slash parser, loop_schedule create, and set_fixed; the tool schema gains .min(1000); adaptive/maintenance create carrying intervalMs is rejected (eval L10 — loop_schedule(create, fixed, intervalMs=0) previously succeeded and silently fell back to 60s).

Added

  • Bare /loop stop cancels every task in scope (current session, or all sessions with --all). /loop stop <id> remains a single-task cancel alias.

Verification

  • npm test: 164/164 (new parser-fidelity, dual-process store, shouldFire, tool-validation, and stop tests)
  • Real OpenCode 1.18.5 E2E with two concurrent opencode serve processes: L14 marker written verbatim with one-shot auto-cleanup, L11 dual-process coexistence + dead-owner cleanup, L10 tool rejection without ghost tasks

Full Changelog: b192f19...v0.7.2