Skip to content

AlloyDB extension blocks usage of other fully configured extensions when AlloyDB env vars are missing #2086

@ishatilwani1301

Description

@ishatilwani1301

Prerequisites

  • I've searched the current open issues
  • I've updated to the latest version of Toolbox

Toolbox version

0.21.0

Environment

No response

Client

Expected Behavior

When multiple extensions are enabled and given a prompt via the Gemini CLI, the validation for one extension should not affect the others.

If I have Spanner enabled with all necessary environment variables set, I should be able to query Spanner successfully, even if the AlloyDB extension is enabled but lacks its environment variables. The missing AlloyDB configuration should only trigger an error if I specifically try to access an AlloyDB tool.

Current Behavior

The AlloyDB extension acts as a blocker for all other tools when running via Gemini CLI.

When AlloyDB is enabled alongside other extensions (like Spanner or Cloud SQL), if the AlloyDB environment variables are missing and available for other extensions, the CLI returns a generic API Error for any request made for other extensions.

This happens even when:

  1. Other extensions are enabled.
  2. Environment variables for those other extensions are correctly set.
  3. The user explicitly queries the configured database (e.g., "List tables in Spanner").

The configured and valid extensions become unusable simply because the AlloyDB extension is present without its credentials.

Screenshots attached for reference
Spanner (Configured) + AlloyDB (Unconfigured) -> Fails (Spanner is blocked).

Image

Spanner (Configured) + Cloud SQL Postgres (Unconfigured) -> Works (Spanner is accessible).

Image

Spanner (Configured) + AlloyDB (Configured) -> Works
Image

Steps to reproduce?

  1. Run the Toolbox using Gemini CLI with Spanner and AlloyDB extensions enabled.
  2. Export valid environment variables only for Spanner (SPANNER_INSTANCE_ID, etc.).
  3. Do not export environment variables for AlloyDB.
  4. Send a prompt regarding the configured Spanner DB: "List tables in Spanner or list tables"
  5. Result: API Error (The valid Spanner configuration is ignored/blocked).

Additional Details

Observation: The error resolves immediately if the AlloyDB environment variables are added (even if not used in the query).

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 fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions