Skip to content

chore: remove two dead onboarding routes and a note-content console.log - #1596

Merged
graphite-app[bot] merged 1 commit into
mainfrom
chore/remove-dead-code
Aug 25, 2026
Merged

chore: remove two dead onboarding routes and a note-content console.log#1596
graphite-app[bot] merged 1 commit into
mainfrom
chore/remove-dead-code

Conversation

@MaheshtheDev

@MaheshtheDev MaheshtheDev commented Aug 25, 2026

Copy link
Copy Markdown
Member

Cherry-picks two cleanup PRs and finishes the job. Net 262 deletions.

Co-Authored-By: abhay-codes07 182421137+abhay-codes07@users.noreply.github.com
Co-Authored-By: ishaanxgupta 124028055+ishaanxgupta@users.noreply.github.com

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 25, 2026

Copy link
Copy Markdown

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 3f7b966 Commit Preview URL

Branch Preview URL
Aug 25 2026, 10:22 AM

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add the label Main to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@MaheshtheDev MaheshtheDev changed the title fix(web): drop debug console.log that logged note content on every keystroke chore: remove two dead onboarding routes and a note-content console.log Aug 25, 2026
@MaheshtheDev
MaheshtheDev marked this pull request as ready for review August 25, 2026 05:55
@claude

claude Bot commented Aug 25, 2026

Copy link
Copy Markdown

Claude finished @MaheshtheDev's task in 1m 15s —— View job


PR Review Complete

  • Load review tools
  • Fetch PR diff and existing review comments
  • Verify deleted routes have no callers
  • Check for remaining references to removed env vars/dependencies
  • Submit review

Overview: Removes two unused onboarding API routes (/api/onboarding/research and /api/onboarding/extract-content), their associated env vars and dependencies, plus a debug console.log that logged note content on every keystroke.

Verification performed:

  • Searched for onboarding/extract-content and onboarding/research — no callers found in the codebase
  • Searched for EXA_API_KEY and XAI_API_KEY — no remaining references in source code
  • Searched for @ai-sdk/xai imports — no direct imports remain (only transitive dep in bun.lock from @voltagent/core)
  • Confirmed the console.log removal is a straightforward debug statement cleanup

Issues found: None — this looks good to ship.

The deleted routes were truly dead code with no callers, and the console.log was a debug statement that could leak note content to session replay tools. Clean deletion PR.

Score: 10/10

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 25, 2026

Copy link
Copy Markdown

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 3f7b966 Aug 25 2026, 10:21 AM

@graphite-app

graphite-app Bot commented Aug 25, 2026

Copy link
Copy Markdown

Merge activity

…og (#1596)

Cherry-picks two cleanup PRs and finishes the job. Net 262 deletions.

- #1473 (@abhay-codes07): drops a `console.log` in the fullscreen note editor that printed the whole note body on every keystroke, which PostHog session replay can capture.
- #1563 (@ishaanxgupta): removes `/api/onboarding/research` and `/api/onboarding/extract-content`. Neither has a caller anywhere in the repo, and both spent metered Exa and xAI quota. This reverts the guards added for them in #1589, which only existed to make unreachable code safe.
- On top: `EXA_API_KEY`, `XAI_API_KEY` and the `@ai-sdk/xai` dependency are removed, since deleting those routes left them with no consumer.

Co-Authored-By: abhay-codes07 <182421137+abhay-codes07@users.noreply.github.com>
Co-Authored-By: ishaanxgupta <124028055+ishaanxgupta@users.noreply.github.com>
@graphite-app
graphite-app Bot force-pushed the chore/remove-dead-code branch from f97f5fe to 3f7b966 Compare August 25, 2026 10:19
@graphite-app
graphite-app Bot merged commit 3f7b966 into main Aug 25, 2026
5 of 7 checks passed
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.

3 participants