Computer tool has unacknowledged safety check

Hello
I am starting to use computer-use-preview :
response = client.responses.create(
model=“computer-use-preview”,
previous_response_id=response.id,
tools=[{
“type”: “computer_use_preview”,
“display_width”: 1920,
“display_height”: 1080,
“environment”: “windows”
}],
input=[{
“call_id”: last_call_id,
“type”: “computer_call_output”,

			"output": {
				"type": "input_image",
				"image_url": f"data:image/png;base64,{screenshot_base64}"
			}
		}],
		truncation="auto"
	)

It’s run ok but sometimes i have this error :
openai.BadRequestError: Error code: 400 - {‘error’: {‘message’: “Computer tool has unacknowledged safety check for [‘cu_sc_67da7f14b4948191989061fef39f9be8091314287585598d’]”, ‘type’: ‘invalid_request_error’, ‘param’: ‘input’, ‘code’: None}}

The error usually occurs when he has to click on an icon, but it’s not systematic.
Apparently, there’s a security issue with certain types of tasks, since I’m asking him to act directly on the Windows environment. How can I stop getting this error or have him ignore it and continue with his actions?
Thanks for help

1 Like

I juste have an other error , how can i “acknowledge this warning” to continue ?

pending_safety_checks=[PendingSafetyCheck(id=‘cu_sc_67dbabe7957c8191962fdcb28f4c2bf6090a9f4839ac3836’, code=‘malicious_instructions’, message=“We’ve detected instructions that may cause your application to perform malicious or unauthorized actions. Please acknowledge this warning if you’d like to proceed.”)],