fix: clean up stuck features on agent start

Ensures features stuck from a previous crash are reset before
launching a new agent, not just on stop/crash going forward.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
nioasoft
2026-02-06 06:02:30 +02:00
parent 6d4a198380
commit 3c61496021

View File

@@ -361,6 +361,9 @@ class AgentProcessManager:
if not self._check_lock(): if not self._check_lock():
return False, "Another agent instance is already running for this project" return False, "Another agent instance is already running for this project"
# Clean up features stuck from a previous crash/stop
self._cleanup_stale_features()
# Store for status queries # Store for status queries
self.yolo_mode = yolo_mode self.yolo_mode = yolo_mode
self.model = model self.model = model