Skip to content

fix(integrations): validate spotify, buffer - #10175

Merged
waleedlatif1 merged 7 commits into
stagingfrom
fix/validate-social
Nov 18, 2026
Merged

waleedlatif1 merged 7 commits into
stagingfrom
fix/validate-social

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Validates the LinkedIn, YouTube, TikTok, Instagram, Reddit, Spotify, Buffer, Dub and Luma integrations against each vendor's official API reference (Spotify's published OpenAPI schema and changelog, Buffer's live GraphQL introspection, Dub's live OpenAPI spec, Luma's OpenAPI spec and changelog), and fixes what was wrong in Spotify and Buffer.

  • Spotify removed its per-type save, remove, follow and "contains" endpoints and the playlist /tracks endpoints for Development Mode apps in February 2026. It replaced them with PUT/DELETE /me/library, GET /me/library/contains and /playlists/{id}/items, which work in both Development and Extended Quota Mode. The affected tools now call the replacements, so they work in either mode. Playlist responses are read from the new item/items fields, falling back to the deprecated track/tracks.
  • Buffer: response enums are no longer rejected when Buffer adds a value (Buffer has since added six ChannelAction values), and ThreadedPost.linkAttachment is no longer queried. Buffer removes that field on 2026-12-15, and querying a removed field fails the whole GraphQL request.
  • Saved workflows send the same requests as before, except for the bug fixes listed below. No block, subBlock, operation, tool, param or output id was renamed or removed, and no OAuth scope was added (Spotify's /me/library endpoints use scopes Sim already requests).
  • Validated, no change needed: LinkedIn, YouTube, TikTok, Instagram, Reddit, Dub, Luma.
  • For a product decision (unchanged here): Spotify also removed several endpoints for Development Mode apps with no replacement: artist top tracks, markets, new releases, browse categories, another user's profile, and the multi-ID "get several" endpoints (tracks, albums, artists, episodes, shows, audiobooks). They keep working for Extended Quota Mode apps. In Development Mode, Get Current User no longer returns email, country, product or followers. Get playlist tracks also stays on the legacy GET /playlists/{id}/tracks, because the replacement /items only reads playlists the user owns or collaborates on. If Sim's Spotify app is in Development Mode, these operations fail and should be hidden or reworked.
  • Notes: Luma's legacy /v1/event/* and /v1/calendar/* paths stay supported, and Luma says they still return their original shapes, so the Luma tools are unchanged. Since July 2026, Luma's List Events no longer returns event descriptions (use Get Event). LinkedIn Share Post still uses the legacy UGC Posts API, which keeps working.

Release notes

Spotify

  • Save, Remove, and Check saved tracks, albums, episodes, shows and audiobooks, Follow/Unfollow artists, Check following, Unfollow playlist and Check playlist followers now use Spotify's current library endpoints. They work again for Spotify apps in Development Mode, where the old endpoints were removed. Each tool still handles as many IDs as before (50, or 20 for albums; Save tracks sends every ID). Spotify's new endpoints take 40 URIs per request, so larger lists are sent in batches of 40 and Check results come back in the original order. If a later batch is rejected, the error names the IDs that were not handled.
  • Follow playlist uses the new library endpoint. When Public is off, it still uses Spotify's older endpoint, the only one that can keep the playlist off your profile; that endpoint is available only to Extended Quota Mode apps.
  • Check playlist followers now always checks whether you follow the playlist, which is all Spotify supports. The User IDs field is no longer required and is not used.
  • Add, Remove, Reorder and Replace playlist items now use Spotify's /items endpoints, so they work for Development Mode apps too.
  • Get playlist tracks keeps Spotify's older read endpoint, which can read any public playlist (the new one only reads playlists you own or collaborate on). It now reads entries Spotify returns under item as well as track,
  • Get playlist, Get user playlists and Search now read the playlist track count from Spotify's new items field, so the count is no longer 0 for Development Mode apps.
  • Search no longer sends a limit of 20 when Limit is empty, so Spotify applies its own default. Development Mode apps reject any limit above 10. The Limit placeholder no longer claims a fixed range or default.

Buffer

  • Get channels, Get channel, and every tool that returns posts no longer fail when Buffer returns an action or metric value added after this integration was built (for example the new shuffleQueue or emptyQueue channel actions). The six new channel actions (approvePosts, cleanQueue, deleteDrafts, emptyQueue, interactWithTakeaways, shuffleQueue) are now listed in the schema.
  • Post thread items no longer request linkAttachment, which Buffer removes on December 15, 2026. That output is now always empty. Read the link from the thread item's metadata instead.

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 18, 2026 8:56pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking issues were found.

Summary

Updates Spotify requests for the current API and makes Buffer responses tolerate vendor changes.

  • Spotify library tools use the shared library API.
  • Playlist tools use Spotify’s current edit routes and response fields.
  • Spotify search leaves an empty result limit to Spotify.
  • Buffer tools accept new response values and skip a retiring field.

Both earlier findings are addressed: later batches receive cancellation signals, and the duplicate test cleanup hook is gone. No new actionable issues found.

Reviews (6) · Last reviewed commit: "fix(integrations): reject spotify uris o..." · Reviewed by Greptile

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 37 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 38 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 38 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 39 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/tools/spotify/save_tracks.ts Resolved
Comment thread apps/sim/tools/spotify/utils.ts Resolved
Comment thread apps/sim/tools/spotify/utils.ts Resolved
Comment thread apps/sim/tools/spotify/library.test.ts Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 39 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/tools/spotify/utils.ts Resolved
Comment thread apps/sim/tools/spotify/utils.ts Resolved
Comment thread apps/sim/tools/spotify/utils.ts Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 39 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

This branch was successfully deployed

1 active deployment
Preview — 20fc0598 Deployed Nov 18, 2026 by vercel[bot]
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.

1 participant