mem0-chrome-extension
mem0-chrome-extension copied to clipboard
Take home challenge ayush
- Refactored Gemini and ChatGPT agent logic to ensure run_id is always set before capturing and sending user memory.
- Implemented robust SPA navigation detection using MutationObserver and pendingMemoryCapture flags.
- Updated memory capture flow to use a callback, guaranteeing run_id is up-to-date before POSTing to the Mem0 API.
- Unified logic across agents for reliable run_id extraction and memory association.