Gemini 3.8 Flash Computer Use: HTTP 400 safety rejection on documented function_result continuation

I’m experiencing a reproducible issue with the Gemini Computer Use API using gemini-3.8-flash and the JavaScript SDK.

Environment

  • Windows

  • Node.js 24.21.0

  • @google/genai 2.25.0

  • Playwright 1.63.0

  • Endpoint: /v1beta/interactions

  • Tool: computer_use, environment browser

  • Prompt-injection detection enabled

Reproduction

  1. Create a local HTML page with one empty Name input.

  2. Send Gemini a screenshot and ask it to click the input and type the synthetic name “Taylor”.

  3. The initial API request succeeds with HTTP 200 and returns a click action.

  4. Execute the click through Playwright and capture an updated PNG screenshot.

  5. Continue the interaction using the exact returned previous_interaction_id, matching function_result call ID/name, execution-result text, and updated PNG.

  6. The continuation fails with HTTP 400.

Error

Request blocked due to safety violations (harmful content). Please modify your input and retry.

The issue also reproduces in a standalone implementation that does not use our application’s orchestration code.

There are no real websites, credentials, personal details, account logins, or application submissions involved.

Safety settings were not weakened or disabled, and no retries were attempted after the explicit rejection.

Questions

  1. Is this a known issue with Computer Use continuations on gemini-3.8-flash?

  2. Is there an undocumented restriction on function_result screenshot content or the continuation format?

  3. Can an account-level or model-level policy cause this rejection despite a successful initial Computer Use request?

  4. Is there a recommended supported workaround that preserves safety protections?

I have a minimal reproduction script, sanitized request/response evidence, screenshots, and interaction identifiers available privately for debugging.

Documentation followed:

Hi @Prithu_Dutta thanks for flagging this issue, can you please DM me the reproduction script/screen shots, and interaction IDs

I can look into this after trying to reproduce on our end