Skip to content

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

Open
seratch wants to merge 1 commit intomainfrom
fix/computer-modifier-keys-compat
Open

fix: #2873 preserve computer driver compatibility for modifier keys#2877
seratch wants to merge 1 commit 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 from 1f41c59 to a76e7db Compare April 13, 2026 01:37
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