remove unused onboarding research endpoints - #1563
Conversation
|
Claude finished @ishaanxgupta's task in 1m 28s —— View job Review Complete
Summary: This PR safely removes two unused onboarding API routes. No references to these endpoints exist in the codebase, so this is a clean deletion with no risk of breaking changes. Note: The PR description mentions removing the Score: 10/10 — Clean code removal, ready to ship. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-app | 5987be9 | Commit Preview URL Branch Preview URL |
Aug 19 2026, 02:12 PM |
There was a problem hiding this comment.
Overview: Removes two unused onboarding API routes (/api/onboarding/research and /api/onboarding/extract-content) that were consuming Exa and XAI APIs.
Issues found: None — the deleted routes have no references in the codebase, making this a safe cleanup.
Note: The PR description mentions removing the @ai-sdk/xai dependency and EXA_API_KEY/XAI_API_KEY env examples, but these weren't included in this diff:
@ai-sdk/xaiis still inapps/web/package.json(line 26)EXA_API_KEYandXAI_API_KEYare still inapps/web/.env.example(lines 3-4)
Since the deleted research/route.ts was the only consumer of @ai-sdk/xai, consider removing the dependency and env examples in a follow-up to complete the cleanup.
Score: 10/10
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-mcp | 5987be9 | Aug 19 2026, 02:11 PM |
|
Included in #1596 with your commits and authorship intact, plus a You were right that these were unreachable. We had just added session checks and input caps to both routes in #1589, so this removes code we had only guarded because it was exposed. We also dropped Thanks @ishaanxgupta. |
…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>
What changed
/api/onboarding/researchroute/api/onboarding/extract-contentroute