Skip to content

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

Closed

Description

@claughinghouse

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

Activity

  1. github-actions commented on Oct 2, 2025

    @github-actions
    Contributor

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

    • TUI stuck forever #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.

  2. rekram1-node commented on Oct 2, 2025

    @rekram1-node
    Collaborator

    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

  3. changed the title [-]opencode GH app not finding Supernova model[/-] [+]opencode GH app not finding Supernova model or grok-code[/+] on Oct 2, 2025
  4. claughinghouse commented on Oct 2, 2025

    @claughinghouse
    Author

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

  5. nahtnam commented on Oct 3, 2025

    @nahtnam

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

  6. sbbddz commented on Oct 7, 2025

    @sbbddz

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

  7. sefradama commented on Oct 7, 2025

    @sefradama

    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.
    
  8. rekram1-node commented on Oct 8, 2025

    @rekram1-node
    Collaborator

    There is a work around for time being: #2549 (comment)

  9. rekram1-node commented on Oct 11, 2025

    @rekram1-node
    Collaborator

    we will fix this soon

  10. rekram1-node commented on Oct 16, 2025

    @rekram1-node
    Collaborator

    should be fixed on latest

  11. python3js commented on Jan 2, 2026

    @python3js

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions