Skip to content

fix(artwork): drop late thumbnail fetches after skip - #3

Closed
lawrence-millard wants to merge 1 commit into
mainfrom
cursor/fix-stale-artwork-6515
Closed

lawrence-millard wants to merge 1 commit into
mainfrom
cursor/fix-stale-artwork-6515

Conversation

@lawrence-millard

Copy link
Copy Markdown
Owner

Problem

NowPlaying.loadThumbnail records lastLoadedVideoId and then fetches via Nuke. Skip A → B starts two loads. If A’s image returns after B’s, it overwrites:

  • player / mini-player artwork
  • lock-screen MPMediaItemArtwork
  • extracted dominant colors

lastLoadedVideoId only skipped a new load for the same id; it did not gate apply.

Fix

Apply (or placeholder-on-error) only when lastLoadedVideoId still matches the request.

How to verify

  1. Queue two songs with different official thumbs.
  2. Start A, immediately skip to B (and optionally back) before A’s image lands.
  3. Before: A’s art can appear on B. After: only the current videoId’s image is applied.

No device build in this environment. No Last.fm/Discord RPC.

Open in Web Open in Cursor 

loadThumbnail sets lastLoadedVideoId then fetches asynchronously.
Skipping A→B started both fetches; if A finished last it replaced
B's art, lock-screen artwork, and dominant colors.

Co-authored-by: Lawrence <lawrence-millard@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 29, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lawrence-millard

Copy link
Copy Markdown
Owner Author

Closed: Lawrence said no auto-PRs.

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.

2 participants