Skip to content

revamp chrome extension#971

Open
ishaanxgupta wants to merge 2 commits into
mainfrom
ishaan/chrome_ext
Open

revamp chrome extension#971
ishaanxgupta wants to merge 2 commits into
mainfrom
ishaan/chrome_ext

Conversation

@ishaanxgupta
Copy link
Copy Markdown
Contributor

@ishaanxgupta ishaanxgupta commented May 19, 2026

extension works across chatgpt, gemini, claude. there is a live marker now with tool tip that shows supermemory is connected, the welcome msg is revamped fully.
The autocomplete works as expected.

here is a photo of the welcome page:
image

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 19, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
supermemory-mcp acdb1d8 May 19 2026, 10:40 AM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 19, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
supermemory-app acdb1d8 Commit Preview URL

Branch Preview URL
May 19 2026, 10:42 AM

- Remove dead code after return statements in chatgpt.ts and claude.ts
- Replace forEach callbacks that return values with for...of loops
- Prefix unused function with underscore (appendStoredMemories)
- Apply formatting fixes to all changed files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ishaanxgupta ishaanxgupta marked this pull request as ready for review May 19, 2026 14:52
@graphite-app graphite-app Bot added the extension related to Supermemory Chrome Extension label May 19, 2026
@graphite-app graphite-app Bot requested a review from Dhravya May 19, 2026 14:52
@claude
Copy link
Copy Markdown

claude Bot commented May 19, 2026

Claude finished @ishaanxgupta's task in 2m 58s —— View job


Review Complete: revamp chrome extension

  • Fetch PR diff and existing review comments
  • Review changed files for bugs, security issues, and logic errors
  • Submit review with findings

Summary: This PR adds Gemini support to the browser extension, introduces a new memory suggestion UI with Tab-to-accept functionality, and refactors platform-specific code to use shared components. The implementation is solid with proper error handling and no security vulnerabilities.

Minor issues noted:

  1. Debug flags hardcoded to true in all platform files — will cause console noise in production
  2. Dead code: _appendStoredMemories function in gemini.ts is never called

Score: 9/10 — Clean implementation, ready to ship after addressing the minor items above.

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview: Adds Gemini support to the browser extension, introduces a new memory suggestion UI with Tab-to-accept functionality, refactors platform-specific code to use shared components, and improves error handling in the popup.

Issues found:

  • Debug flags (CHATGPT_DEBUG, CLAUDE_DEBUG, GEMINI_DEBUG) are all hardcoded to true — will cause verbose console output in production
  • Dead code: _appendStoredMemories function in gemini.ts is defined but never used

The implementation is well-structured with proper error handling, no XSS vulnerabilities (all dynamic content uses textContent instead of innerHTML), and good separation of concerns via the shared memory-suggestion.ts module.

Score: 9/10

Clean implementation with only minor housekeeping items to address before shipping.

let geminiDebounceTimeout: NodeJS.Timeout | null = null
let geminiRouteObserver: MutationObserver | null = null
let geminiUrlCheckInterval: NodeJS.Timeout | null = null
let geminiObserverThrottle: NodeJS.Timeout | null = null
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug flag is hardcoded to true. This applies to all three platform files (chatgpt.ts, claude.ts, gemini.ts). In production, this will result in verbose console output on every user interaction.

Consider either:

  • Setting this to false before merging
  • Using an environment variable or build flag
Suggested change
let geminiObserverThrottle: NodeJS.Timeout | null = null
const GEMINI_DEBUG = false

return input.innerText || input.textContent || ""
}

function _appendStoredMemories(input: GeminiInput, storedMemories: string) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is defined but never called anywhere in the codebase. Consider removing it if it's no longer needed, or if it's intended for future use, add a TODO comment explaining when it should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension related to Supermemory Chrome Extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant