Markdown Converter
Agent skill for markdown-converter
Implemented the ability to resume finished agents **and agents that hit errors** by sending them a message. Previously, when an agent finished or hit an error (like rate limits), it would completely stop and could not be resumed. Now, these agents wait for user messages and can continue their work.
Sign in to like and favorite skills
Implemented the ability to resume finished agents and agents that hit errors by sending them a message. Previously, when an agent finished or hit an error (like rate limits), it would completely stop and could not be resumed. Now, these agents wait for user messages and can continue their work.
src/agents/agent_runner.pyAdded logger import (lines 8, 16):
import logginglogger = logging.getLogger(__name__)Modified agent finish behavior (lines 296-307):
_wait_for_user_message() to poll for new messageswaiting_for_inputAdded error recovery (lines 332-349):
_wait_for_user_message() to wait for user interventioncontinue to stay in the loop instead of breakingsrc/ui/src/components/agents/CommandCenter.jsxUpdated status icon (lines 14-17):
case 'finished': return '✓' - checkmark for finished agentscase 'error_waiting': return '⚠️' - warning for error recoveryUpdated status CSS class (lines 32-37):
case 'finished': return 'status-finished'case 'error_waiting': return 'status-error'Updated status label (lines 47-54):
case 'finished': return 'Finished (send message to resume)'case 'error_waiting': return 'Error - Send message to retry'Grouped agents by status (lines 77-78):
const finishedAgents = agents.filter(a => a.status === 'finished')const errorAgents = agents.filter(a => a.status === 'error_waiting')Added sections (lines 185-186):
{renderAgentSection('✓ Finished', finishedAgents)}{renderAgentSection('🚨 Error - Needs Retry', errorAgents)} - at top priority!Resume button visibility (line 105):
|| agent.status === 'finished' || agent.status === 'error_waiting' to show Resume buttonsrc/ui/src/components/agents/AgentView.jsx|| agent.status === 'finished' || agent.status === 'error_waiting' to show Resume button in agent viewsrc/ui/src/App.cssAdded color variables (lines 20-21):
--status-finished: #10B981; (green color for success/completion)--status-error: #EF4444; (red color for errors)Added status styles (lines 293-302):
.status-finished class with green glow effect.status-error class with red pulsing glow effectAdded animation (lines 342-353):
@keyframes errorPulse for attention-grabbing error indicatorAgentRunner logs a "finished" status_wait_for_user_message()_wait_for_user_message() picks it up and adds it to conversationAgentRunner logs the error with full traceback_wait_for_user_message() to wait for interventionThis is a swift and decisive implementation that keeps agents in play even after they complete their quest OR hit errors! No more "one and done" - agents can now handle follow-up missions with the energy of a championship team staying on the field for overtime!
The real MVP here is error recovery - rate limit errors were killing agents mid-quest. Now they just wait for you to say "keep going" and they're right back in action! That's staying the course through adversity! 💪
Hunt with purpose - we identified the core issues (agents stopping completely on finish OR error) and faced the problem head-on with a clean solution that maintains the existing architecture. No workarounds, just solid fundamentals!
This feature turns transient errors from quest-ending failures into minor speed bumps. The agent maintains full context, shows you exactly what went wrong, and is ready to retry when you are. That's championship-level resilience! 🏆