Skip to content

fix: #2873 preserve computer driver compatibility for modifier keys#2877

Merged
seratch merged 2 commits intomainfrom
fix/computer-modifier-keys-compat
Apr 15, 2026
Merged

fix: #2873 preserve computer driver compatibility for modifier keys#2877
seratch merged 2 commits intomainfrom
fix/computer-modifier-keys-compat

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented Apr 13, 2026

This pull request resolves #2873.

This pull request fixes compatibility regressions in computer modifier-key handling for computer actions. OpenAI's computer-use actions can include optional modifier keys on mouse actions, but adding keys to the abstract Computer and AsyncComputer method signatures broke released subclass implementations and made legacy drivers fail at runtime when the model emitted modifier-bearing actions.

The change keeps the public driver override contract intact and moves modifier-key support into runtime dispatch. Mouse-action modifiers are forwarded only when a driver method accepts keys or generic keyword arguments, while legacy drivers continue to run with a warning when modifiers are dropped. The built-in computer-use example now holds and releases modifier keys around mouse actions, and the test suite covers compatibility across legacy, modifier-aware, async, **kwargs, and batched-action paths.

@seratch seratch added this to the 0.14.x milestone Apr 13, 2026
@github-actions github-actions bot added bug Something isn't working feature:core labels Apr 13, 2026
@seratch seratch force-pushed the fix/computer-modifier-keys-compat branch 2 times, most recently from a76e7db to 66e4819 Compare April 15, 2026 17:54
@seratch
Copy link
Copy Markdown
Member Author

seratch commented Apr 15, 2026

@codex review again

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 66e4819177

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/run_internal/tool_actions.py Outdated
@seratch seratch force-pushed the fix/computer-modifier-keys-compat branch from 66e4819 to 83a0e58 Compare April 15, 2026 18:36
@seratch seratch merged commit 9013480 into main Apr 15, 2026
9 checks passed
@seratch seratch deleted the fix/computer-modifier-keys-compat branch April 15, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Computer interface silently drops modifier keys (keys param) from API response

1 participant