Releases: DraconDev/opencode-auto-continue
Releases · DraconDev/opencode-auto-continue
v7.8.331 - Bug Fixes & Dead Code Removal
What's Changed
Fixed
- Critical: cleanupIdleSessions dangling timers — Now clears timer, nudgeTimer, and reviewDebounceTimer before deleting idle sessions. Prevents zombie sessions from resurrecting when stale timers fire.
- Critical: session.compacted continue not sent — After emergency compaction, now directly queues and sends continue via review.sendContinue() instead of relying on subsequent idle event that may never fire.
- High: Double token counting for assistant messages — Skip token estimation when msgRole === 'assistant' since actual tokens arrive via message.updated. Prevents inflated estimates triggering premature compaction.
- High: Discovered sessions timeout too long — Use Math.min(stallTimeoutMs, 30000) for faster detection of already-stuck sessions discovered via session.list() polling.
- Medium: actionStartedAt never resets — Reset actionStartedAt = 0 when session goes idle. Fixes incorrect elapsed time for sessions oscillating between busy/idle.
- Medium: lastNudgeAt not updated in custom prompts — Set lastNudgeAt = Date.now() when sending custom prompts to prevent immediate nudge after custom prompt.
- Medium: lastKnownStatus stale on error — Set lastKnownStatus = 'error' on MessageAbortedError to prevent stale status misleading orphan detection.
Removed
- Dead code: event-router.ts — Removed 424-line unused parallel implementation that was never imported. Eliminates maintenance hazard and code drift.
- Dead config: Plan-driven continue options — Removed planDrivenContinue, planFilePath, planAutoMarkComplete, planMaxItemsPerContinue from config interface and defaults.
Full Changelog: https://github.com/DraconDev/opencode-auto-continue/blob/main/CHANGELOG.md
v7.8.212 - Directive Messages & Planned Work Tracking
Release v7.8.212
🎯 What's New
Directive Recovery Messages
- All continue/nudge/review messages now use imperative tone
- Anti-loop guards: "Do not ask for permission — just proceed"
- AI instructed to act autonomously without confirmation
Planned Work Tracking
- Review message now prompts: "If you have planned work that isn't tracked yet, create todos for it now"
- Nudge message reminds: "Create additional todos for any new work you discover, including planned work from earlier"
- Catches the common stall pattern where AI thinks "I'll do X next" but doesn't create a todo
📊 Stats
- 377 tests passing
- 34 total bug fixes applied across codebase
- Plugin active in local OpenCode instance (dogfooding)
🔧 Previous Fixes (v7.8.209-v7.8.211)
- Recovery flow: generation counters, concurrency guards, backoff logic
- Nudge: failure backoff, cached todo fallback, prompt guards
- Review: retry limits, reviewFired reset for test-fix loops
- Session monitor: orphan detection, discovery, cleanup
- Token estimation: configurable multiplier, deduplicated counting
- Type deduplication: shared.ts re-exports from canonical sources
🐕 Current Dogfood Config
[\"opencode-auto-continue\", {
\"stallTimeoutMs\": 45000,
\"maxRecoveries\": 3,
\"sessionMonitorEnabled\": true,
\"nudgeEnabled\": true,
\"autoCompact\": true
}]v7.8.131 - Session Monitor & Local Dev Workflow
What's New in v7.8.131
Session Monitor (v7.5)
- Orphan Parent Detection: Detects stuck parent sessions after subagent completion
- Session Discovery: Periodic polling catches sessions missed by event hooks
- Idle Cleanup: Automatic memory management prevents leaks in long-running instances
Documentation Updates
- Local Development Workflow: Complete setup instructions for
~/.config/opencode/plugins/ - Plugin Registration Guide: How to add the plugin to
opencode.json - Troubleshooting Section: Common setup issues and fixes
- Updated Sync Script:
npm run syncnow copies all files and createspackage.json
Key Features
- Stall recovery with exponential backoff
- Todo-aware nudging and review
- Emergency compaction on token limits
- AI advisory system (optional)
- Terminal title/progress integration
- Real-time status file monitoring
Installation
npm install opencode-auto-continueOr install locally for development:
git clone https://github.com/DraconDev/opencode-auto-continue
cd opencode-auto-continue
npm install && npm run build
npm run sync # Copies to ~/.config/opencode/plugins/See README.md for full configuration options.