-
Notifications
You must be signed in to change notification settings - Fork 6
chore: remove opencode-anthropic-auth external plugin from setup #230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The plugin is built into OpenCode v1.1.36+ and adding it as an external plugin causes a TypeError from double-loading. Updated setup.sh, README, and agent docs to reflect the built-in status.
Summary of ChangesHello @marcusquinn, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request streamlines the OpenCode setup process by eliminating a redundant external plugin installation. It ensures that users leverage the native Anthropic OAuth integration available in newer OpenCode versions, thereby preventing runtime errors caused by duplicate plugin loading and providing updated, accurate documentation. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
WalkthroughDeprecates the external Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report �[0;34m[INFO]�[0m Latest Quality Status: �[0;34m[INFO]�[0m Recent monitoring activity: 📈 Current Quality Metrics
Generated on: Sun Jan 25 23:16:04 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
🤖 Augment PR SummarySummary: This PR removes the external Changes:
🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| print_info "Zero cost for Claude subscribers, auto token refresh, beta features" | ||
| print_info "See: https://github.com/anomalyco/opencode-anthropic-auth" | ||
| echo "" | ||
| # Note: opencode-anthropic-auth is built into OpenCode v1.1.36+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since setup.sh previously added opencode-anthropic-auth to opencode.json, consider also removing that entry (or emitting a clear warning) so rerunning setup fixes existing configs. Otherwise, users who already have it in their .plugin array may continue to hit the double-loading TypeError even after upgrading aidevops.
🤖 Was this useful? React with 👍 or 👎
There was a problem hiding this 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 correctly removes the external opencode-anthropic-auth plugin, which is now built into OpenCode v1.1.36+, to resolve a double-loading TypeError. The changes are well-executed, with the setup.sh script updated to remove the installation, and all relevant documentation files (README.md, opencode.md, opencode-anthropic-auth.md) modified to reflect this change and guide users. The addition of a clear changelog entry is also a good practice. The overall change is solid and consistent. I have one suggestion to improve the README.md by retaining some useful information for the user in a more maintainable way.
| - Extended thinking modes | ||
|
|
||
| See the [plugin documentation](https://github.com/anomalyco/opencode-anthropic-auth) and `.agent/tools/opencode/opencode-anthropic-auth.md` for complete setup and troubleshooting. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While removing the details of the deprecated external plugin is the correct approach, the 'Available models' section contained information that is still valuable to users of the built-in feature. To improve the user experience, consider reintroducing this section with a more generic and maintainable description that doesn't require frequent updates.
This would give users a clear idea of the capabilities they gain without creating a maintenance burden of tracking specific model versions.
| **Available models:** | |
| Provides access to all models available to Anthropic Pro/Max subscribers, including the latest Claude 3.5 and Opus families. For an up-to-date list, please refer to the official Anthropic documentation. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
README.md (1)
276-293: README.md Anthropic OAuth section is correct, but remove deprecated plugin documentation.The built-in OAuth documentation at lines 276-293 is clean and accurate—clearly states no external plugin needed, provides correct authentication flow, and lists benefits. This properly supports PR
#230's objective.However, residual documentation for the deprecated
opencode-anthropic-authplugin exists at.agent/tools/opencode/opencode-anthropic-auth.md. This file contains full installation instructions that contradict your README message. It should be deleted entirely—not kept with warnings, as users may discover and attempt to install the deprecated plugin anyway, causing the TypeError you're trying to prevent.Also remove the deprecated plugin reference from
todo/PLANS.mdline 1189.
🧹 Nitpick comments (1)
.agent/tools/opencode/opencode-anthropic-auth.md (1)
34-44: Quick Setup section contradicts deprecation notice.The "Quick Setup" code block at lines 36-44 still shows
npm install -g opencode-anthropic-auth, which contradicts the deprecation notice at lines 12-15. Since this document is retained for historical reference, this section should either be removed or clearly marked as legacy/pre-v1.1.36 only.♻️ Suggested fix
**Quick Setup**: +> **For OpenCode v1.1.36+**: Skip installation and run `opencode auth login` directly. + +<details> +<summary>Legacy setup (pre-v1.1.36 only)</summary> + ```bash -# Install plugin (auto-installed by aidevops setup.sh) +# Only for OpenCode versions before v1.1.36 npm install -g opencode-anthropic-auth # Authenticate in OpenCode opencode auth login # Select: Anthropic → Claude Pro/Max (or Create an API Key) # Follow OAuth flow in browser
+
</details> </blockquote></details> </blockquote></details> <!-- This is an auto-generated comment by CodeRabbit for review status -->



Summary
opencode-anthropic-authexternal plugin installation fromsetup.sh— it's built into OpenCode v1.1.36+ and adding it externally causes aTypeError: undefined is not an object (evaluating 'input.model.providerID')from double-loadingRoot Cause
OpenCode v1.1.36 bundles
[email protected]internally. Whensetup.shalso addedopencode-anthropic-auth@latestto the plugin array inopencode.json, both copies loaded simultaneously, causing the TypeError on every new session.Files Changed
setup.shadd_opencode_plugincall for anthropic-authREADME.md.agent/tools/opencode/opencode.md.agent/tools/opencode/opencode-anthropic-auth.mdCHANGELOG.mdSummary by CodeRabbit
Documentation
opencode auth login.Removed
✏️ Tip: You can customize this high-level summary in your review settings.