You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Four review items from the PR review round:
- Precedence bug at gemini.ts:225-233 and anthropic-vertex.ts:43-50:
the truthiness check was on the raw vertexJsonCredentials field,
so path-shaped input (which parseVertexJsonCredentials correctly
returns undefined for) still entered the JSON branch with
credentials: undefined instead of falling through to vertexKeyFile.
Bind parseVertexJsonCredentials's result first and branch on it.
- Extract parseVertexJsonCredentials from gemini.ts to a new
utils/vertex-credentials.ts module. anthropic-vertex.ts previously
imported from ./gemini, which pulled in the @google/genai runtime
dependency unnecessarily. The shared util has no provider-specific
imports.
- a11y on the Vertex.tsx warning: added role="alert" and
aria-live="polite" so screen readers announce the dynamic
warning when it appears.
- Mixed-input regression tests: added cases asserting that when
vertexJsonCredentials is path-shaped AND vertexKeyFile is set,
the GoogleAuth/GoogleGenAI client is constructed with the
keyFile, not the (now undefined) credentials. Locks in the
fallback contract. The pre-existing path-shape-only tests were
also updated to match the corrected fallthrough: with no
vertexKeyFile, neither GoogleAuth (anthropic-vertex) nor
googleAuthOptions (gemini) is constructed.
0 commit comments