agentops
agentops copied to clipboard
Fix local development console errors
📥 Pull Request
📘 Description Resolved numerous console errors occurring in local development mode by conditionally disabling PostHog initialization and improving its integration to gracefully handle missing keys or uninitialized states. This prevents 401, 404, and MIME type errors related to PostHog when running locally.
🧪 Testing
- Ran the application in local development mode.
- Verified that no PostHog-related errors (401, 404, MIME type) appear in the browser console.
- Confirmed that the core application functionality remains unaffected.
Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents