opencode GH app not finding Supernova model or grok-code #1926

Closed
opened 2026-02-16 17:33:15 -05:00 by yindo · 11 comments
Owner

Originally created by @claughinghouse on GitHub (Oct 2, 2025).

Originally assigned to: @fwang on GitHub.

The latest opencode GH app errors out when using the supernova model after running opencode github install command:

Run sst/opencode/github@latest
  with:
    model: opencode/code-supernova
  env:
    OPENCODE_API_KEY: ***
Run curl -fsSL https://opencode.ai/install | bash
  curl -fsSL https://opencode.ai/install | bash
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    OPENCODE_API_KEY: ***
    VERSION: 0.5.5
Downloading opencode version: 0.5.5 ...
#=#=#                                                                          

                                                                           0.9%
################                                                          22.4%
################################                                          45.0%
################################################                          67.3%
################################################################          89.7%
######################################################################## 100.0%
Successfully added opencode to $PATH in /home/runner/.bashrc
Added /home/runner/.opencode/bin to $GITHUB_PATH
Run opencode github run
Images []
Configuring git...
AUTHORIZATION: basic ***
Asserting permissions for user claughinghouse...
  permission: admin
Creating comment...
opencode session ses_659a9f8d6ffeo7HFT4zj2KSHKB
Checking out new branch...
Fetching prompt data for issue...
Switched to a new branch 'opencode/issue138-20251002191119'
Sending message to opencode...
1 | (function (...args) { super(...args); })
Updating comment...
                          ^
ProviderModelNotFoundError: ProviderModelNotFoundError
 data: {
  providerID: "opencode",
  modelID: "code-supernova",
},

      at new NamedError (1:23)
      at new ProviderModelNotFoundError (/$bunfs/root/opencode:59469:9)
      at getModel (/$bunfs/root/opencode:116933:13)

Error: ProviderModelNotFoundError
Error: Process completed with exit code 1.

Workflow file:

name: opencode

on:
  issue_comment:
    types: [ created ]

jobs:
  opencode:
    if: |
      contains(github.event.comment.body, ' /oc') ||
      startsWith(github.event.comment.body, '/oc') ||
      contains(github.event.comment.body, ' /opencode') ||
      startsWith(github.event.comment.body, '/opencode')
    runs-on: ubuntu-latest
    timeout-minutes: 60
    permissions:
      id-token: write
      contents: write
      pull-requests: write
      issues: write
    steps:
      - name: Checkout repository
        uses: actions/checkout@v5

      - name: Run opencode
        uses: sst/opencode/github@latest
        env:
          OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
        with:
          model: opencode/code-supernova
Originally created by @claughinghouse on GitHub (Oct 2, 2025). Originally assigned to: @fwang on GitHub. The latest opencode GH app errors out when using the supernova model after running `opencode github install` command: ``` Run sst/opencode/github@latest with: model: opencode/code-supernova env: OPENCODE_API_KEY: *** Run curl -fsSL https://opencode.ai/install | bash curl -fsSL https://opencode.ai/install | bash shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: OPENCODE_API_KEY: *** VERSION: 0.5.5 Downloading opencode version: 0.5.5 ... #=#=# 0.9% ################ 22.4% ################################ 45.0% ################################################ 67.3% ################################################################ 89.7% ######################################################################## 100.0% Successfully added opencode to $PATH in /home/runner/.bashrc Added /home/runner/.opencode/bin to $GITHUB_PATH Run opencode github run Images [] Configuring git... AUTHORIZATION: basic *** Asserting permissions for user claughinghouse... permission: admin Creating comment... opencode session ses_659a9f8d6ffeo7HFT4zj2KSHKB Checking out new branch... Fetching prompt data for issue... Switched to a new branch 'opencode/issue138-20251002191119' Sending message to opencode... 1 | (function (...args) { super(...args); }) Updating comment... ^ ProviderModelNotFoundError: ProviderModelNotFoundError data: { providerID: "opencode", modelID: "code-supernova", }, at new NamedError (1:23) at new ProviderModelNotFoundError (/$bunfs/root/opencode:59469:9) at getModel (/$bunfs/root/opencode:116933:13) Error: ProviderModelNotFoundError Error: Process completed with exit code 1. ``` Workflow file: ``` name: opencode on: issue_comment: types: [ created ] jobs: opencode: if: | contains(github.event.comment.body, ' /oc') || startsWith(github.event.comment.body, '/oc') || contains(github.event.comment.body, ' /opencode') || startsWith(github.event.comment.body, '/opencode') runs-on: ubuntu-latest timeout-minutes: 60 permissions: id-token: write contents: write pull-requests: write issues: write steps: - name: Checkout repository uses: actions/checkout@v5 - name: Run opencode uses: sst/opencode/github@latest env: OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} with: model: opencode/code-supernova ```
yindo closed this issue 2026-02-16 17:33:15 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 2, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2819: TUI stuck forever - Also reports getting stuck when trying to use opencode/code-supernova model with similar ProviderModelNotFoundError

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 2, 2025): This issue might be a duplicate of existing issues. Please check: - #2819: TUI stuck forever - Also reports getting stuck when trying to use opencode/code-supernova model with similar ProviderModelNotFoundError Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 2, 2025):

at a glance your configuration looks correct, It may not currently be supported due to the action installing older opencode version, will take a look when I have a chance but @fwang knows best here

@rekram1-node commented on GitHub (Oct 2, 2025): at a glance your configuration looks correct, It may not currently be supported due to the action installing older opencode version, will take a look when I have a chance but @fwang knows best here
Author
Owner

@claughinghouse commented on GitHub (Oct 2, 2025):

Thanks @rekram1-node. I also checked grok-code with the same result/error

@claughinghouse commented on GitHub (Oct 2, 2025): Thanks @rekram1-node. I also checked grok-code with the same result/error
Author
Owner

@nahtnam commented on GitHub (Oct 2, 2025):

Same issue with zai-coding-plan/glm-4.6

@nahtnam commented on GitHub (Oct 2, 2025): Same issue with `zai-coding-plan/glm-4.6`
Author
Owner

@sbbddz commented on GitHub (Oct 7, 2025):

I'm having exactly same issue but using amazon-bedrock and sonnet

@sbbddz commented on GitHub (Oct 7, 2025): I'm having exactly same issue but using amazon-bedrock and sonnet
Author
Owner

@sefradama commented on GitHub (Oct 7, 2025):

Same issue with zai-coding-plan/glm-4.6

same - i found my opencode.yml had been generated with the model zhipuai-coding-plan/glm-4.6.

unfortunately, correcting the model in the .yml doesn't help because the github opencode agent still gives the error:

Downloading opencode version: 0.5.5 ...
#=#=#                                                                          

                                                                           0.0%
####                                                                       5.6%
#######################################                                   55.2%
#################################################                         68.7%
######################################################################## 100.0%
Successfully added opencode to $PATH in /home/runner/.bashrc
Added /home/runner/.opencode/bin to $GITHUB_PATH
Run opencode github run
Images []
Configuring git...
AUTHORIZATION: basic ***
Asserting permissions for user sefradama...
  permission: admin
Creating comment...
opencode session ses_641d1fa57ffeFCJhlmM7i41x3m
Checking out new branch...
Fetching prompt data for issue...
Switched to a new branch 'opencode/issue147-20251007101831'
Sending message to opencode...
1 | (function (...args) { super(...args); })
Updating comment...
                          ^
ProviderModelNotFoundError: ProviderModelNotFoundError
 data: {
  providerID: "zai-coding-plan",
  modelID: "glm-4.6",
},

      at new NamedError (1:23)
      at new ProviderModelNotFoundError (/$bunfs/root/opencode:59469:9)
      at getModel (/$bunfs/root/opencode:116930:13)

Error: ProviderModelNotFoundError
Error: Process completed with exit code 1.
@sefradama commented on GitHub (Oct 7, 2025): > Same issue with `zai-coding-plan/glm-4.6` same - i found my `opencode.yml` had been generated with the model `zhipuai-coding-plan/glm-4.6`. unfortunately, correcting the model in the .yml doesn't help because the github opencode agent still gives the error: ``` Downloading opencode version: 0.5.5 ... #=#=# 0.0% #### 5.6% ####################################### 55.2% ################################################# 68.7% ######################################################################## 100.0% Successfully added opencode to $PATH in /home/runner/.bashrc Added /home/runner/.opencode/bin to $GITHUB_PATH Run opencode github run Images [] Configuring git... AUTHORIZATION: basic *** Asserting permissions for user sefradama... permission: admin Creating comment... opencode session ses_641d1fa57ffeFCJhlmM7i41x3m Checking out new branch... Fetching prompt data for issue... Switched to a new branch 'opencode/issue147-20251007101831' Sending message to opencode... 1 | (function (...args) { super(...args); }) Updating comment... ^ ProviderModelNotFoundError: ProviderModelNotFoundError data: { providerID: "zai-coding-plan", modelID: "glm-4.6", }, at new NamedError (1:23) at new ProviderModelNotFoundError (/$bunfs/root/opencode:59469:9) at getModel (/$bunfs/root/opencode:116930:13) Error: ProviderModelNotFoundError Error: Process completed with exit code 1. ```
Author
Owner

@rekram1-node commented on GitHub (Oct 8, 2025):

There is a work around for time being: https://github.com/sst/opencode/issues/2549#issuecomment-3373840335

@rekram1-node commented on GitHub (Oct 8, 2025): There is a work around for time being: https://github.com/sst/opencode/issues/2549#issuecomment-3373840335
Author
Owner
@eduardomoroni commented on GitHub (Oct 11, 2025): In case you need more examples: I'm having this issue: Model I'm using https://models.dev/?search=grok-code https://github.com/TheCardGoat/tcg-engines/pull/3#issuecomment-3369144984 <img width="611" height="331" alt="Image" src="https://github.com/user-attachments/assets/da4cc899-f23a-43b7-8d68-cef7f9522663" /> https://github.com/TheCardGoat/tcg-engines/blob/b8480d0ac6446123665374a43971fc5f46e5e18d/.github/workflows/opencode.yml#L27 I followed the instructions from https://opencode.ai/docs/github/
Author
Owner

@rekram1-node commented on GitHub (Oct 11, 2025):

we will fix this soon

@rekram1-node commented on GitHub (Oct 11, 2025): we will fix this soon
Author
Owner

@rekram1-node commented on GitHub (Oct 16, 2025):

should be fixed on latest

@rekram1-node commented on GitHub (Oct 16, 2025): should be fixed on latest
Author
Owner

@python3js commented on GitHub (Jan 2, 2026):

Seems to be an issue again with minimax/MiniMax-M2.1

@python3js commented on GitHub (Jan 2, 2026): Seems to be an issue again with `minimax/MiniMax-M2.1`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1926