Repository navigation
v0.7.3 — Run-mode /loop fallback (issue #18)
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 emitscommand.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 thechat.messagehook and runs the same deterministic parser (runLoopCommandshared by both hooks). Parts already consumed bycommand.execute.beforeare skipped, so the TUI path is never handled twice. - Quoted argv:
opencode runre-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 runE2E: quoted cron input rejected deterministically; quoted valid interval creates the fixed task
Full Changelog: v0.7.2...v0.7.3