fix: convert agent colors to valid opencode format#335
Open
jecruz wants to merge 1 commit intomsitarzewski:mainfrom
Open
fix: convert agent colors to valid opencode format#335jecruz wants to merge 1 commit intomsitarzewski:mainfrom
jecruz wants to merge 1 commit intomsitarzewski:mainfrom
Conversation
OpenCode requires agent colors to be either 6-character hex codes or specific theme names. Named colors like purple, teal, amber etc. are not valid. Converts 57 agents with invalid colors to hex equivalents: - green -> #10B981 - blue -> #3B82F6 - purple -> #8B5CF6 - teal -> #14B8A6 - orange -> #F97316 - red -> #EF4444 - amber -> #F59E0B - indigo -> #6366F1 - gold -> #EAB308 - pink -> #EC4899 - cyan -> #06B6D4 - neon-cyan -> #06B6D4 - neon-green -> #22C55E - metallic-blue -> #6B7280 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Converts agent colors to valid OpenCode format (56 agents fixed).
OpenCode requires agent colors to be either:
#FF5733)primary,secondary,accent,success,warning,error,info)Named colors like
purple,teal,amber,cyan, etc. are not valid.Changes
All invalid named colors converted to hex equivalents:
green->#10B981blue->#3B82F6purple->#8B5CF6teal->#14B8A6orange->#F97316red->#EF4444amber->#F59E0Bindigo->#6366F1gold->#EAB308pink->#EC4899cyan->#06B6D4neon-cyan->#06B6D4neon-green->#22C55Emetallic-blue->#6B7280Testing
Verified with
opencode providers list- no more color validation errors.🤖 Generated with Claude Code