Skip to content

v0.7.3 — Run-mode /loop fallback (issue #18)

Choose a tag to compare

@jkrandom-sudo jkrandom-sudo released this 02 Aug 09:19
· 11 commits to main since this release
c964988

opencode-plugin-loop 0.7.3

Patch release fixing the run-mode /loop bypass (issue #18).

Bug fixes

  • Run-mode fallback: opencode run "/loop ..." (headless and -i) never emits command.execute.before, so raw command text went straight to the model and every deterministic guard (missing prompt, cron rejection, unknown flags, canonical help) was bypassed. The plugin now intercepts the literal /loop ... text in the chat.message hook and runs the same deterministic parser (runLoopCommand shared by both hooks). Parts already consumed by command.execute.before are skipped, so the TUI path is never handled twice.
  • Quoted argv: opencode run re-quotes argv elements containing spaces, so the stored text is often "/loop 5m" with literal quotes — outer quotes are now stripped before fallback matching, and all text parts are scanned.

Verification

  • npm test: 176/176 (12 new run-mode tests)
  • Real opencode run E2E: quoted cron input rejected deterministically; quoted valid interval creates the fixed task

Full Changelog: v0.7.2...v0.7.3