Skip to content
This repository was archived by the owner on Oct 7, 2026. It is now read-only.

v3.5.41 - Workflow Error Handling Fix (BUG-003B)

Choose a tag to compare

@wtthornton wtthornton released this 04 Feb 17:47
· 32 commits to main since this release

πŸ› Bug Fixes

BUG-003B: Workflow Error Handling & Recovery

Fixed critical workflow error handling issues:

  • βœ… Failed steps now marked as FAILED (❌), not completed (βœ…)
  • βœ… Workflows halt immediately when required steps fail
  • βœ… Dependent steps skipped with clear reasons when dependencies fail
  • βœ… Task status correctly updates to "blocked" on failure (not reset to "todo")
  • βœ… Error messages include full stack traces and actionable information

Technical Changes

New: StepResult dataclass in tapps_agents/workflow/models.py

  • Proper error tracking with success/failure status
  • Error details and stack traces
  • Artifacts and skip reasons
  • JSON serialization support

Updated: cursor_executor.py

  • Return StepResult instead of raising exceptions
  • Added _can_execute_step() dependency validation
  • Workflow halt logic for required step failures
  • Graceful handling of optional step failures

Updated: task.py

  • Set task status to "blocked" on workflow failure
  • Proper status transitions: todo β†’ in-progress β†’ done/blocked

Quality Metrics

  • Code Review Score: 93/100 βœ… (EXCELLENT)
  • Test Coverage: Integration tests added
  • Documentation: Complete implementation plan and bug resolution docs

Files Changed

  • tapps_agents/workflow/models.py - New StepResult type
  • tapps_agents/workflow/cursor_executor.py - Error handling refactor
  • tapps_agents/cli/commands/task.py - Task status fixes
  • tests/integration/test_workflow_error_handling.py - New test suite

Full Changelog: v3.5.40...v3.5.41