Skip to content

antigravity-preview-05-2026 Managed Agent Loses Basic Tool Access After an Hour #1788

Description

@theoswallis

Hi there! I've reported this a few different places but haven't seemed to figure out where the actual correct place is, so apologies if this is another miss!

Environment details

  • Programming language: Typescript
  • OS: Windows
  • Language runtime version: Node v24.16.0
  • Package version: @google/genai ^2.3.0

Steps to reproduce

(I've been specifically developing with stream: true, so stream: false or background: true are untested)

  1. Call GoogleGenAi.interactions.create with agent: "antigravity-preview-05-2026", input: anyPrompt, and stream: true. capture the interactionId and environmentId
  2. Wait an hour
  3. Call again, passing in stream:true and the interactionId and environmentId, and a prompt like "write a hello-world script, read it, run it, then delete it"
  4. Capture the response stream.

Expected: Agent writes/reads/runs/deletes a hello-world script
Observed: Agent begins receiving 401 Unauthorized errors in response to basic internal tools (read_file, write_file, delete_file, code_execution) and is unable to perform any task, resorting to simple text-out behavior and describing what it would do if tools were working.

I hope this gets where it needs to go, if this is the right place and any extra information is needed, let me know!

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions