Skip to content

fix: handle unsupported task types in task endpoints - #83

Merged
cjumel merged 1 commit into
mainfrom
cursor/platform-sdk-sync-20260630
Jun 30, 2026
Merged

cjumel merged 1 commit into
mainfrom
cursor/platform-sdk-sync-20260630

Conversation

@Shedna

@Shedna Shedna commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Description

  • the platform /tasks endpoints can now return the beta extract task type, while the Python SDK only supports stable search, fetch, and research tasks
  • synchronized the SDK by turning unsupported task types into explicit UnknownError failures in get_task, and by refining TASK_TYPE_NOT_SUPPORTED 403 responses away from misleading authentication errors
  • added focused regression tests for unsupported task payloads and 403 error refinement

Checklist

  • I have installed prek on this project (for instance with the make install-dev command) before creating any commit, or I have run successfully the make lint command on my changes.
  • I have run successfully the make typecheck test command on my changes.
  • I have updated the README.md if my changes affected it.

@cjumel
cjumel force-pushed the cursor/platform-sdk-sync-20260630 branch from a13f52e to b0bc939 Compare June 30, 2026 13:33
@cjumel
cjumel force-pushed the cursor/platform-sdk-sync-20260630 branch from b0bc939 to ff863b4 Compare June 30, 2026 13:38
@cjumel
cjumel merged commit d9a9a13 into main Jun 30, 2026
3 checks passed
@cjumel
cjumel deleted the cursor/platform-sdk-sync-20260630 branch June 30, 2026 13:41
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.

3 participants