Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 20, 2026

OpenCode workflow fails with ProviderModelNotFoundError because the model identifier includes a date suffix that OpenCode's registry doesn't recognize.

Changes

  • .github/workflows/shared/opencode.md: Changed model from anthropic/claude-3-5-sonnet-20241022 to anthropic/claude-3.5-sonnet

OpenCode expects model names in provider/model format without version suffixes:

# Before (fails)
GH_AW_AGENT_MODEL: "anthropic/claude-3-5-sonnet-20241022"

# After (works)
GH_AW_AGENT_MODEL: "anthropic/claude-3.5-sonnet"

The date suffix format is specific to Anthropic's direct API but incompatible with OpenCode's model resolution.

Original prompt

This section details on the original issue you should resolve

<issue_title>[agentics] Smoke OpenCode failed</issue_title>
<issue_description>### Workflow Failure

Workflow: Smoke OpenCode
Branch: HEAD
Run URL: https://github.com/githubnext/gh-aw/actions/runs/21149376648

Action Required

Debug this workflow failure using the agentic-workflows agent:

/agent agentic-workflows

When prompted, instruct the agent to debug this workflow failure.

Generated from Smoke OpenCode

  • expires on Jan 26, 2026, 7:33 PM UTC

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Remove date suffix from Anthropic model name to match OpenCode's expected format.
OpenCode expects 'anthropic/claude-3.5-sonnet' not 'anthropic/claude-3-5-sonnet-20241022'.

This fixes the ProviderModelNotFoundError in workflows using the OpenCode custom engine.

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Debug workflow failure for Smoke OpenCode Fix OpenCode Anthropic model name format Jan 20, 2026
@pelikhan pelikhan closed this Jan 20, 2026
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.

[agentics] Smoke OpenCode failed

3 participants