Skip to content

opencode: support vertex-ai auth#214

Open
verdverm wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
verdverm:opencode-vertex-ai
Open

opencode: support vertex-ai auth#214
verdverm wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
verdverm:opencode-vertex-ai

Conversation

@verdverm
Copy link
Copy Markdown

@verdverm verdverm commented May 5, 2026

  1. Adds support to opencode for vertex-ai auth, tested "in production"
  2. fixes logic around --prompt flag when no task consuming next arg from baseArgs as prompt, i.e. if no task, should not even supply the flag

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enables Vertex AI authentication for the OpenCode harness by updating its capabilities and implementing auth resolution logic. Key changes include refactoring command argument construction, adding a resolveVertexAI helper function, and updating the ResolveAuth method to support both explicit and auto-detected Vertex AI configurations. Feedback was provided to improve the clarity and consistency of the error message when no valid authentication method is found by explicitly listing the required environment variables.

Comment thread pkg/harness/opencode.go
@verdverm verdverm force-pushed the opencode-vertex-ai branch from 9609b7d to d0dfe9e Compare May 9, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant