-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Description
Problem Description
When using oh-my-opencode with alternative AI providers (e.g., ali-coding-plan), the system fails because of hardcoded Claude model references in the category prompt constants.
Error Encountered
Error: Could not load the default credentials.
Browse to https://cloud.google.com/docs/authentication/getting-started
Root Cause
File: dist/tools/delegate-task/constants.d.ts
The following constants contain hardcoded Claude model names:
QUICK_CATEGORY_PROMPT_APPEND- referencesclaude-haiku-4-5UNSPECIFIED_LOW_CATEGORY_PROMPT_APPEND- referencesclaude-sonnet-4-6
These hardcoded references cause the system to attempt loading Claude models even when the user has configured a different provider in opencode.jsonc.
Current Workaround
Users must manually edit the cached file:
sed -i 's/claude-haiku-4-5/your-provider\/your-model/g' ~/.bun/install/cache/oh-my-opencode@VERSION/dist/tools/delegate-task/constants.d.ts
sed -i 's/claude-sonnet-4-6/your-provider\/your-model/g' ~/.bun/install/cache/oh-my-opencode@VERSION/dist/tools/delegate-task/constants.d.tsThis workaround is fragile and gets overwritten on package updates.
Suggested Fix
- Remove hardcoded model references from the prompt text
- Or, read model names from the configuration system
- Or, make model names configurable per category
Environment
- oh-my-opencode: v3.11.2
- Platform: Windows 11 / macOS
- bun cache location:
~/.bun/install/cache/
Impact
This issue prevents users who:
- Cannot access Claude API (geo-restrictions, no account)
- Prefer alternative providers (cost, performance, local models)
- Are in environments with only specific providers configured
from using the quick and unspecified-low categories.
Thanks for this great project! Let me know if you need any additional information.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels