Skip to content

fix(spotify-player): limit liked songs library fetch - #30283

Merged
raycastbot merged 2 commits into
raycast:mainfrom
raulkolaric:fix/spotify-library-memory
Aug 16, 2026
Merged

raycastbot merged 2 commits into
raycast:mainfrom
raulkolaric:fix/spotify-library-memory

Conversation

@raulkolaric

Copy link
Copy Markdown
Contributor

Summary

I noticed that the liked songs entry calls useYourLibrary() without selecting a category. Since the hook defaults to all, opening the Your Library command can fetch unrelated library categories again even though this component only needs tracks.

I changed the component to request the tracks category explicitly. This keeps the visible behavior the same while avoiding unnecessary library data and reducing the chance of contributing to the extension's 100 MB heap failures.

Validation

  • npm run lint --prefix extensions/spotify-player
  • npm run build --prefix extensions/spotify-player

I have not been able to reproduce the memory-limit crash locally, so I kept this change intentionally small and limited to the redundant library fetch.

Related issue: #30218

Related reports: #27607, #23405

The liked songs entry only needs the tracks category, but it previously used the default all-library fetch. That could load unrelated collections again while opening Your Library and contribute to the extension memory-limit failures.

Changes:
- extensions/spotify-player/src/components/PlaylistLikedTracksItem.tsx
  - Request only the tracks category for the liked songs entry.

- extensions/spotify-player/CHANGELOG.md
  - Document the reduced library loading.

Validation:
- npm run lint --prefix extensions/spotify-player
- npm run build --prefix extensions/spotify-player
@raulkolaric
raulkolaric force-pushed the fix/spotify-library-memory branch from 888a7af to 52c1a4d Compare August 16, 2026 19:59
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: spotify-player Issues related to the spotify-player extension AI Extension platform: macOS platform: Windows labels Aug 16, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @mattisssa @peduarte @sxn @dillionverma @andreaselia @stuart @tonka3000 @pernielsentikaer @stevensd2m @erics118 @hjoelh @hobhouse @jatindotdev @the-devbear @rfaccio @badta5te @andyburris @rhesamu @themitpatel @LitoMore @EnneEmme @lineville @tsibog @viethung0823 @eyalevy23 @vmrjnvc @Karthikxp @kartheesan05 @joshkat @Caffeine19 @AdrianKokot @validatedev @xmok @hugodemenez @alexibuild @shivraj-roy @ridemountainpig you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

📋 Quick checkout commands
BRANCH="fix/spotify-library-memory"
FORK_URL="https://github.com/raulkolaric/extensions.git"
EXTENSION_NAME="spotify-player"
REPO_NAME="extensions"

git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run dev

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days.

@greptile-apps

greptile-apps Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR narrows the liked-songs entry’s library request to the tracks category, avoiding unrelated library fetches while preserving its displayed data.

  • Passes category: "tracks" to useYourLibrary.
  • Adds a changelog entry describing the reduced library fetch.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
extensions/spotify-player/src/components/PlaylistLikedTracksItem.tsx Narrows the library query to tracks, matching the only category consumed by this component.
extensions/spotify-player/CHANGELOG.md Adds a release note for the liked-songs library-fetch optimization.

Reviews (2): Last reviewed commit: "Update CHANGELOG.md" | Re-trigger Greptile

@raulkolaric
raulkolaric marked this pull request as ready for review August 16, 2026 20:13
@pernielsentikaer pernielsentikaer self-assigned this Aug 16, 2026

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. The liked-songs row only needs tracks, so this avoids the full library fetch.

@raycastbot
raycastbot merged commit a0fbca3 into raycast:main Aug 16, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

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

Labels

AI Extension extension fix / improvement Label for PRs with extension's fix improvements extension: spotify-player Issues related to the spotify-player extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants