Skip to main content
When a run fails, Momentic analyzes screenshots, page state, step descriptions, and error traces to surface the likely root cause, so you can triage without replaying the run.

What it considers

  • Screenshots before and after each step to spot overlays, misalignment, or unexpected UI changes
  • Page state and URL at the moment of failure
  • Step descriptions and actions to understand intent
  • Element targeting details to catch hidden or disabled elements
  • Error message and stack

Where you see it

The run viewer surfaces failure analysis under the AI failure analysis tab:
  • Error summary
  • Root cause analysis + suggested fix
  • Error details (message, stack)
  • Summary of previous steps
Failure analysis
The CLI also prints a root cause summary, classified error type, and a fallback description when RCA isn’t available.

Configuration

Set ai.aiFailureAnalysis in momentic.config.yaml:
momentic.config.yaml
ai:
  aiFailureAnalysis: true