Skip to content

Add reasoning effort to OpenAI CUA and Claude Computer Use - #124

Merged
NikhilShahi merged 2 commits into
mainfrom
cursor/cua-claude-reasoning-effort-58cb
Sep 10, 2026
Merged

Add reasoning effort to OpenAI CUA and Claude Computer Use#124
NikhilShahi merged 2 commits into
mainfrom
cursor/cua-claude-reasoning-effort-58cb

Conversation

@NikhilShahi

@NikhilShahi NikhilShahi commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add the new reasoning_effort request field to OpenAI CUA and Claude Computer Use so the Python SDK can send the same reasoningEffort values the API now accepts.

Changes

  • Add CuaReasoningEffort (none, low, medium, high, xhigh, max) and ClaudeComputerUseReasoningEffort (low, medium, high, xhigh, max)
  • Expose reasoning_effort on both TypedDict and legacy Pydantic start-task params
  • Cover camelCase serialization and typecheck fixtures for the new fields
  • Bump the package version from 1.4.2 to 1.4.3

Validation

  • poetry run pytest tests --ignore=tests/sandbox/e2e — 343 passed, 4 skipped
  • poetry run ruff check on the changed files — all checks passed
  • Confirmed dump_request serializes reasoning_effort to reasoningEffort for both agents

The SDKs only declare the allowed values. Model-specific combinations are validated server-side.

Open in Web Open in Cursor 

Expose the new reasoningEffort request field on both agents, matching
the API and the existing Grok/Meta Computer Use pattern.

Co-authored-by: nikhil <nikhil@metlo.com>
@NikhilShahi
NikhilShahi marked this pull request as ready for review September 10, 2026 18:01

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

NikhilShahi has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

Co-authored-by: nikhil <nikhil@metlo.com>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

NikhilShahi has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@NikhilShahi
NikhilShahi merged commit a52d6aa into main Sep 10, 2026
13 checks passed
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