Skip to content

feat: Wire openclaw:prompt-error events into alerts stream#788

Closed
vivekchand wants to merge 1 commit intomainfrom
fix/gh-clawmetry-601-prompt-errors
Closed

feat: Wire openclaw:prompt-error events into alerts stream#788
vivekchand wants to merge 1 commit intomainfrom
fix/gh-clawmetry-601-prompt-errors

Conversation

@vivekchand
Copy link
Copy Markdown
Owner

Closes #601

What

Add support for detecting and displaying openclaw:prompt-error events throughout ClawMetry:

  • New /api/prompt-errors endpoint for querying prompt errors
  • /api/prompt-errors/alert endpoint for banner display on overview
  • promptErrorsLast24h field in /api/overview response
  • PROMPT_ERROR events now emitted in brain-stream SSE for real-time monitoring
  • promptErrors field in brain-history response

How

  • Scan session JSONL files for custom events with customType: openclaw:prompt-error
  • Extract error details: provider, model, error message, timestamp, sessionId
  • Sort by time descending, limit to recent 50-100 events
  • Add red (#ef4444) color coding for PROMPT_ERROR events in stream

These are real provider failures: rate limits, auth issues, context overflow, model-not-found — now visible in the dashboard instead of ignored.

@vivekchand
Copy link
Copy Markdown
Owner Author

Closing as superseded by #797, which addresses the same issue (#601) with a cleaner implementation and fixes the CI failures present in this PR.

@vivekchand vivekchand closed this Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P0] Wire openclaw:prompt-error events into alerts stream

1 participant