feat(KB-206): add stuck task detection and auto-recovery
- Add taskStuckTimeoutMs setting to detect tasks with no activity - Create StuckTaskDetector to poll in-progress tasks every 30s - Integrate heartbeat tracking into executor via step callbacks - Implement recovery flow: abort stuck sessions, retry with preserved progress - Export detector and wire into dashboard for real-time monitoring - Add comprehensive tests and documentation to AGENTS.md
This commit is contained in:
5
.changeset/stuck-task-detection.md
Normal file
5
.changeset/stuck-task-detection.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@dustinbyrne/kb": minor
|
||||
---
|
||||
|
||||
Add stuck task detection and recovery. When `taskStuckTimeoutMs` is configured, tasks with stagnant agent sessions (no text, tool, or progress activity) are automatically terminated and retried from their current step.
|
||||
Reference in New Issue
Block a user