Skip to content

fix(feed): back For You feed with live /tracks/recommended endpoint#14448

Closed
dylanjeffers wants to merge 1 commit into
mainfrom
fix/for-you-feed-recommended-fallback
Closed

fix(feed): back For You feed with live /tracks/recommended endpoint#14448
dylanjeffers wants to merge 1 commit into
mainfrom
fix/for-you-feed-recommended-fallback

Conversation

@dylanjeffers
Copy link
Copy Markdown
Contributor

Problem

The For You feed tab is empty in production. It calls the new GET /v1/users/{id}/feed/for-you endpoint (sdk.users.getUserForYouFeed()), which 404s on the current validator-node deployment and won't be fixed for ~a week.

Fix

Point useForYouFeed at GET /v1/tracks/recommended (sdk.tracks.getRecommendedTracks) — the long-standing, personalized recommendation source the Explore page used before the For You feed existed. It reliably returns 200 from api.audius.co today (verified: for-you → 404 on the old fleet, /tracks/recommended → 200).

Pagination

/tracks/recommended has no offset parameter, but it does accept an exclusionList. Pagination now passes the accumulated already-seen track ids as the exclusion list, so each page returns fresh recommendations without repeats. The pageParam carries that list.

Compatibility

The hook keeps its existing return shape (a tracks-only LineupData[] plus derived trackIds), so the feed-page consumers (FeedPageContent web desktop/mobile, mobile FeedScreen) are unchanged.

This is a temporary fallback — revert to getUserForYouFeed() once the dedicated endpoint is deployed (NOTE comment in the hook calls this out).

Test plan

  • tsc --noEmit passes for @audius/common
  • Verified https://api.audius.co/v1/tracks/recommended?limit=3 returns 200
  • For You tab renders recommended tracks and "load more" pages without duplicates

🤖 Generated with Claude Code

The dedicated GET /v1/users/{id}/feed/for-you endpoint is not yet rolled
out across the validator-node fleet and 404s in production, so the For
You tab renders empty. Fall back to GET /v1/tracks/recommended
(sdk.tracks.getRecommendedTracks) — the same personalized recommendation
source the Explore page used before the For You feed existed, which
reliably returns 200 from api.audius.co today.

/tracks/recommended has no offset param, so pagination passes the
already-seen track ids as exclusionList; each page returns fresh
recommendations that don't repeat earlier ones. The pageParam carries
the accumulated exclusion list. The hook keeps its existing return shape
(tracks-only lineup), so feed-page consumers are unchanged.

Swap back to getUserForYouFeed() once the new endpoint is deployed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 4, 2026

🦋 Changeset detected

Latest commit: 244da8d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@audius/common Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dylanjeffers
Copy link
Copy Markdown
Contributor Author

Folding this into #14446 to keep the For You feed fixes in one PR. Superseded by the second commit there.

@dylanjeffers dylanjeffers deleted the fix/for-you-feed-recommended-fallback branch June 4, 2026 22:44
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

🌐 Web preview ready

Preview URL: https://audius-web-preview-pr-14448.audius.workers.dev

Unique preview for this PR (deployed from this branch).
Workflow run

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant