Skip to content

Gemini Enterprise Fail to update the Access Token in older chats #5556

@TkSiZ

Description

@TkSiZ

🔴 Required Information

Describe the Bug:
When using OAuth in Gemini Enterprise, access tokens are correctly generated and refreshed when starting a new chat session. However, for previously created chats, each one retains its original (now expired) access token tied to its session state. These tokens are not refreshed automatically, even after reloading the page. As a result, tools within the agent that depend on a valid access token stop working in older chats.


Steps to Reproduce:

  1. Configure OAuth flow in Gemini Enterprise.
  2. Start a new chat and trigger token generation.
  3. Use a tool/agent that depends on the access token (works as expected).
  4. Wait until the access token expires.
  5. Return to the same (older) chat session.
  6. Attempt to use the same tool again.
  7. Observe failure due to expired access token.
  8. Refresh the page or reload the session.
  9. Try again — token is still not refreshed and the tool remains broken.

Expected Behavior:
Access tokens should be refreshed automatically (or re-issued) when expired, regardless of whether the chat session is new or old. Reloading the page or interacting with the agent should trigger token renewal so that dependent tools continue functioning.


Observed Behavior:
Access tokens are not refreshed for older chat sessions. Each chat appears to maintain its own session-bound token, and once expired, it is not renewed. This causes tools relying on the token to fail consistently in those chats.



Metadata

Metadata

Assignees

Labels

auth[Component] This issue is related to authorization

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions