openai-php / openai-php/client
[Bug]: Undefined array key 'action' for /Responses/Responses/Output/OutputComputerToolCall.php
@iBotPeaches is already working on this.
Since Apr 15, 2026.
- #759 by @copilot-swe-agent — closed without merging
- Dominant language
- PHP
- Stars
- 5.8k
- Forks
- 679
- Avg merge
- 19m
- Merged PRs (30d)
- 2
Description
Description
When using the computer tool type the response doesn't iclude an action array key but an actions with an (s) array key which contains multiple indexed items. per the response below, which is incompatable with the from function in OuputComputerToolCall::from(array $attributes)
array (size=5)
'id' => string 'cu_0183c8e712ba6fb30069dfc80ad8088196a691169d66cc0f38' (length=53)
'type' => string 'computer_call' (length=13)
'status' => string 'completed' (length=9)
'actions' =>
array (size=1)
0 =>
array (size=1)
'type' => string 'screenshot' (length=10)
'call_id' => string 'call_3TzpJMokCcC2brSF0NFSOEcy' (length=29)
Steps To Reproduce
Perform a responses call with tool type computer
OpenAI PHP Client Version
0.18.0
PHP Version
8.4
Notes
Ive reveiwed the repo and this method hasn't changed since computer tool because avaialble in 5.4 a few weeks ago.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.