Gemini 4 Argon background Interaction fails when internal UberMint expires before stream close

Hello,

I encountered what appears to be an internal credential expiration issue with a Gemini 4 Argon background Interaction.

Environment:

  • Model: gemini-4-argon

  • API: Interactions API

  • Background execution: enabled

  • Service tier: Flex

  • Thinking level: low

  • Python SDK: google-genai 2.29.0

  • Approximate failure time: October 23, 2026, 12:57 UTC

  • Final status: 401 UNAUTHENTICATED

  • Elapsed time shown by the client: approximately 364 seconds

The Interaction was accepted successfully and remained in progress while being polled. It eventually failed with this error in Google AI Studio:

Agent finished with error: Failed to close Interaction stream: Rejected by RpcSecurityPolicy for /GenerativeService.StreamGenerateContent: mint used too late, now=2026-10-23T05:57:50.233662941-07:00, not_after=2026-10-23T05:56:51-07:00, not_before=2026-10-23T05:50:51-07:00; UberMint invalid

The internal mint appears to have been valid for six minutes and had expired by approximately 59 seconds when Google attempted to close the Interaction stream.

The same authorization key:

  • successfully works with regular generateContent requests;

  • successfully works with Gemini 3.8 Flash and Gemini 4 Argon Standard;

  • had also successfully completed an earlier Gemini 4 Argon Flex background Interaction.

This suggests that the external API key itself is valid and that the failure occurred because an internal credential was not refreshed during the long-running background execution.

Expected behavior:

A background Interaction should remain authenticated until it completes, even when generation takes longer than the lifetime of an internal credential.

Could you please confirm:

  1. Whether this is a known issue with long-running Gemini 4 Argon background Interactions;

  2. Whether internal credentials should be refreshed automatically;

  3. Whether failed Interactions of this type may still incur token charges;

  4. Whether any client-side workaround is currently recommended.

I can provide the Interaction ID and Google Cloud project information privately to a Google team member if needed.

Thanks for the heads up Maiko. A fix is rolling out now.