Skip to content

v1.0.40: Event-based Todo Continuation

Choose a tag to compare

@callum-spencer callum-spencer released this 05 Feb 13:18
· 3 commits to main since this release
e434be1

What's New

🚀 Major Improvement: Event-Based Todo Continuation

The previous implementation used fragile string matching and toast notifications which didn't reliably keep the agent working when there were pending TODOs. This release implements a robust event-based solution.

Changes

Core Features:

  • Event-driven continuation: Listens for session.idle event when agent stops working
  • Programmatic prompt injection: Uses ctx.client.session.prompt() to inject continuation messages
  • Smart throttling: 30-second cooldown per session to avoid spam
  • Session refresh: Reloads session data on idle to ensure fresh TODO state

Agent Updates:

  • ORXA agent now creates plan files directly instead of delegating
  • Added .orxa/ to .gitignore for user plan files

CI/CD Improvements:

  • Removed version sync from publish workflow (fixes detached HEAD issue)
  • Removed delegation section warning console output

How It Works

  1. When the agent completes work, OpenCode fires session.idle event
  2. Plugin detects pending TODOs for that session
  3. Injects a continuation prompt: "You have pending TODOs that need to be completed. Continue working on the next pending task without asking for permission..."
  4. Agent automatically continues working on remaining tasks

Testing

✅ All 516 tests pass
✅ Tested in real-world usage
✅ Visual feedback via toast notifications

Installation

npm install -g @reliabilityworks/opencode-orxa@1.0.40

Full Changelog: v1.0.39...v1.0.40