Skip to content

fix: align task type support error handling - #46

Merged
Shedna merged 2 commits into
mainfrom
cursor/platform-sdk-sync-20260716-js
Jul 17, 2026
Merged

fix: align task type support error handling#46
Shedna merged 2 commits into
mainfrom
cursor/platform-sdk-sync-20260716-js

Conversation

@Shedna

@Shedna Shedna commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • synchronize the JS SDK with the platforms TASK_TYPE_NOT_SUPPORTED task error contract
  • add a dedicated LinkupTaskTypeNotSupportedError instead of surfacing that 403 as LinkupUnknownError
  • update the error refinement tests to cover the platform-specific mapping

Why

The platforms stable /v1/tasks surface returns a dedicated TASK_TYPE_NOT_SUPPORTED error code for unsupported task types, but the JS SDK still flattened that response into LinkupUnknownError.

Validation

  • npm run build
  • npm run lint
  • npm test

cursoragent and others added 2 commits July 16, 2026 08:08
@Shedna
Shedna merged commit 5c27bba into main Jul 17, 2026
2 checks passed
@Shedna
Shedna deleted the cursor/platform-sdk-sync-20260716-js branch July 17, 2026 11:21
@Shedna

Shedna commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 3.2.8 🎉

The release is available on:

Your semantic-release 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.

2 participants