/opencode raise an error in github actions #1687

Closed
opened 2026-02-16 17:32:09 -05:00 by yindo · 24 comments
Owner

Originally created by @fbraza on GitHub (Sep 11, 2025).

Originally assigned to: @fwang on GitHub.

I was making a couple of test recently using the opencode Github action.

Here is the yaml file

name: opencode

on:
  issue_comment:
    types: [created]
  pull_request_review_comment:
    types: [created]

jobs:
  opencode:
    if: |
      contains(github.event.comment.body, '/oc') ||
      contains(github.event.comment.body, '/opencode')
    runs-on: ubuntu-latest
    permissions:
      id-token: write
      contents: write
      pull-requests: write
      issues: write
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 1

      - name: Run opencode
        uses: sst/opencode/github@latest
        env:
          OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
        with:
          model: openrouter/anthropic/claude-sonnet-4
          share: true

Here the error log on Github

Run sst/opencode/github@latest
  with:
    model: openrouter/anthropic/claude-sonnet-4
    share: true
  env:
    OPENROUTER_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:
    OPENROUTER_API_KEY: ***
    VERSION: 0.5.29
Downloading opencode version: 0.5.29 ...

######################################################################## 100.0%

Successfully added opencode to $PATH in /home/runner/.bashrc
Added /home/runner/.opencode/bin to $GITHUB_PATH

Run opencode github run
  opencode github run
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    OPENROUTER_API_KEY: ***
    MODEL: openrouter/anthropic/claude-sonnet-4
    SHARE: true
  
opencode github
manage GitHub agent
Commands:
  opencode github install  install the GitHub agent
Options:
      --help        show help                                          [boolean]
  -v, --version     show version number                                [boolean]
      --print-logs  print logs to stderr                               [boolean]
      --log-level   log level
                            [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
Error: Process completed with exit code 1.

A couple of thing I am surprised about:

  1. The version 0.5.29 of opencode is being download
  2. This is very strange
Commands:
  opencode github install  install the GitHub agent
Options:
      --help        show help                                          [boolean]
  -v, --version     show version number                                [boolean]
      --print-logs  print logs to stderr                               [boolean]
      --log-level   log level
                            [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]

It is running the help / doc of the cli. It seems like something may be wrong with the command being triggered.

Let me know if you need anything more. The yaml is made with OpenRouter but I also tested directly with my Claude Max subscription and got the exact same error.

Many thanks

Cheers

Originally created by @fbraza on GitHub (Sep 11, 2025). Originally assigned to: @fwang on GitHub. I was making a couple of test recently using the `opencode` Github action. Here is the yaml file ```yaml name: opencode on: issue_comment: types: [created] pull_request_review_comment: types: [created] jobs: opencode: if: | contains(github.event.comment.body, '/oc') || contains(github.event.comment.body, '/opencode') runs-on: ubuntu-latest permissions: id-token: write contents: write pull-requests: write issues: write steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 1 - name: Run opencode uses: sst/opencode/github@latest env: OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} with: model: openrouter/anthropic/claude-sonnet-4 share: true ``` Here the error log on Github ```text Run sst/opencode/github@latest with: model: openrouter/anthropic/claude-sonnet-4 share: true env: OPENROUTER_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: OPENROUTER_API_KEY: *** VERSION: 0.5.29 Downloading opencode version: 0.5.29 ... ######################################################################## 100.0% Successfully added opencode to $PATH in /home/runner/.bashrc Added /home/runner/.opencode/bin to $GITHUB_PATH Run opencode github run opencode github run shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: OPENROUTER_API_KEY: *** MODEL: openrouter/anthropic/claude-sonnet-4 SHARE: true opencode github manage GitHub agent Commands: opencode github install install the GitHub agent Options: --help show help [boolean] -v, --version show version number [boolean] --print-logs print logs to stderr [boolean] --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"] Error: Process completed with exit code 1. ``` A couple of thing I am surprised about: 1. The version `0.5.29` of opencode is being download 2. This is very strange ``` Commands: opencode github install install the GitHub agent Options: --help show help [boolean] -v, --version show version number [boolean] --print-logs print logs to stderr [boolean] --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"] ``` It is running the help / doc of the cli. It seems like something may be wrong with the command being triggered. Let me know if you need anything more. The `yaml` is made with `OpenRouter` but I also tested directly with my Claude Max subscription and got the exact same error. Many thanks Cheers
yindo closed this issue 2026-02-16 17:32:09 -05:00
Author
Owner

@fbraza commented on GitHub (Sep 11, 2025):

Ok.

Out of ignorance, because it runs the curl -fsSL https://opencode.ai/install | bash I thought it will get the most up to date version. How did you pin this? I cannot find anything on the github folder or action.yml file.

Second do you think this may be the root cause of the error?

Cheers

@fbraza commented on GitHub (Sep 11, 2025): Ok. Out of ignorance, because it runs the `curl -fsSL https://opencode.ai/install | bash` I thought it will get the most up to date version. How did you pin this? I cannot find anything on the `github` folder or `action.yml` file. Second do you think this may be the root cause of the error? Cheers
Author
Owner

@harrismcc commented on GitHub (Sep 11, 2025):

I'm getting the same error on my repo, I just setup opencode in it today

@harrismcc commented on GitHub (Sep 11, 2025): I'm getting the same error on my repo, I just setup opencode in it today
Author
Owner

@notlousybook commented on GitHub (Sep 13, 2025):

same error guys, when fixing this? and does /oc work here?

@notlousybook commented on GitHub (Sep 13, 2025): same error guys, when fixing this? and does /oc work here?
Author
Owner

@tudragon154203 commented on GitHub (Sep 14, 2025):

/opencode can you take a look?

@tudragon154203 commented on GitHub (Sep 14, 2025): /opencode can you take a look?
Author
Owner

@rmoriz commented on GitHub (Sep 17, 2025):

"@latest" resolves to the latest tag of this repo which is right now 2 weeks behind the dev HEAD.

When using @v0.9.11 i'm getting a error related to bun v1.2.22

@rmoriz commented on GitHub (Sep 17, 2025): "@latest" resolves to the latest tag of this repo which is right now 2 weeks behind the dev HEAD. When using @v0.9.11 i'm getting a error related to bun v1.2.22
Author
Owner

@anglisano commented on GitHub (Sep 19, 2025):

Same error here, there are some temporal solution? Or version that we can use until the latest work?

2025-09-19T14:42:20.5329362Z ##[group]Run sst/opencode/github@latest
with:
model: google/gemini-1.5-pro
env:
GOOGLE_GENERATIVE_AI_API_KEY: ***
Run curl -fsSL https://opencode.ai/install | bash
Downloading opencode version: 0.5.29 ...
#=#=#
##O#-#

                                                                       0.0%

############# 18.2%
################# 24.0%
#################### 28.9%
######################## 34.1%
############################# 40.9%
################################ 45.1%
############################################# 62.9%
################################################## 70.2%
############################################################## 87.1%
################################################################# 91.4%
######################################################################## 100.0%
Successfully added opencode to $PATH in /home/runner/.bashrc
Added /home/runner/.opencode/bin to $GITHUB_PATH
Run opencode github run
opencode github

manage GitHub agent

Commands:
opencode github install install the GitHub agent

Options:
--help show help [boolean]
-v, --version show version number [boolean]
--print-logs print logs to stderr [boolean]
--log-level log level
[string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
Process completed with exit code 1.

@anglisano commented on GitHub (Sep 19, 2025): Same error here, there are some temporal solution? Or version that we can use until the latest work? 2025-09-19T14:42:20.5329362Z ##[group]Run sst/opencode/github@latest with: model: google/gemini-1.5-pro env: GOOGLE_GENERATIVE_AI_API_KEY: *** Run curl -fsSL https://opencode.ai/install | bash Downloading opencode version: 0.5.29 ... #=#=# ##O#-# 0.0% ############# 18.2% ################# 24.0% #################### 28.9% ######################## 34.1% ############################# 40.9% ################################ 45.1% ############################################# 62.9% ################################################## 70.2% ############################################################## 87.1% ################################################################# 91.4% ######################################################################## 100.0% Successfully added opencode to $PATH in /home/runner/.bashrc Added /home/runner/.opencode/bin to $GITHUB_PATH Run opencode github run opencode github manage GitHub agent Commands: opencode github install install the GitHub agent Options: --help show help [boolean] -v, --version show version number [boolean] --print-logs print logs to stderr [boolean] --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"] Process completed with exit code 1.
Author
Owner

@m9tdev commented on GitHub (Sep 19, 2025):

Same here.

Also tried to pin to the latest version manually using:

      - name: Run opencode
        uses: sst/opencode/github@v0.10.2
        env:
          OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
          VERSION: 0.10.2
        with:
          model: opencode/grok-code

but that results in the following error:

Run sst/opencode/github@v0.10.2
Run curl -fsSL https://opencode.ai/install | bash
Downloading opencode version: 0.10.2 ...
#=#=#                                                                          

##########                                                                14.0%
###################################################################       93.1%
######################################################################## 100.0%
Successfully added opencode to $PATH in /home/runner/.bashrc
Added /home/runner/.opencode/bin to $GITHUB_PATH
Run npm install -g bun

added 5 packages in 7s
Run cd ${GITHUB_ACTION_PATH}
  cd ${GITHUB_ACTION_PATH}
  bun install
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    OPENCODE_API_KEY: ***
    VERSION: 0.10.2
bun install v1.2.22 (6bafe260)
error: @types/bun@catalog: failed to resolve
Error: Process completed with exit code 1.
@m9tdev commented on GitHub (Sep 19, 2025): Same here. Also tried to pin to the latest version manually using: ``` - name: Run opencode uses: sst/opencode/github@v0.10.2 env: OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} VERSION: 0.10.2 with: model: opencode/grok-code ``` but that results in the following error: ``` Run sst/opencode/github@v0.10.2 Run curl -fsSL https://opencode.ai/install | bash Downloading opencode version: 0.10.2 ... #=#=# ########## 14.0% ################################################################### 93.1% ######################################################################## 100.0% Successfully added opencode to $PATH in /home/runner/.bashrc Added /home/runner/.opencode/bin to $GITHUB_PATH Run npm install -g bun added 5 packages in 7s Run cd ${GITHUB_ACTION_PATH} cd ${GITHUB_ACTION_PATH} bun install shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: OPENCODE_API_KEY: *** VERSION: 0.10.2 bun install v1.2.22 (6bafe260) error: @types/bun@catalog: failed to resolve Error: Process completed with exit code 1. ```
Author
Owner

@rekram1-node commented on GitHub (Sep 19, 2025):

I will raise this to the team

@rekram1-node commented on GitHub (Sep 19, 2025): I will raise this to the team
Author
Owner

@fwang commented on GitHub (Sep 19, 2025):

should be fixed!

give it a try

@fwang commented on GitHub (Sep 19, 2025): should be fixed! give it a try
Author
Owner

@rekram1-node commented on GitHub (Sep 19, 2025):

tested seems fixed

@rekram1-node commented on GitHub (Sep 19, 2025): tested seems fixed
Author
Owner

@m9tdev commented on GitHub (Sep 19, 2025):

Uses 0.5.5 now for me. It does seem to get further, but (i guess) because of the old version it doesn't support the opencode provider yet

7s
Run sst/opencode/github@latest
Run curl -fsSL https://opencode.ai/install | bash
Downloading opencode version: 0.5.5 ...
#=#=#                                                                          
###################                                                       27.1%
#####################################################                     74.3%
######################################################################    97.3%
######################################################################## 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 m9tdev...
  permission: admin
Creating comment...
opencode session ses_69c3622a3ffe7jFIOoxZtd7Ipt
Checking out new branch...
Switched to a new branch 'opencode/issue87-20250919210317'
Fetching prompt data for issue...
Sending message to opencode...
1 | (function (...args) { super(...args); })
                          ^
ProviderModelNotFoundError: ProviderModelNotFoundError
 data: {
  providerID: "opencode",
  modelID: "grok-code",
},
      at new NamedError (1:23)
      at new ProviderModelNotFoundError (/$bunfs/root/opencode:59469:9)
      at getModel (/$bunfs/root/opencode:116933:13)
Updating comment...

Seems that providing the VERSION env var doesn't have an effect and using uses: sst/opencode/github@dev in combination with the env var results in the same error as using sst/opencode/github@v0.10.2

@m9tdev commented on GitHub (Sep 19, 2025): Uses 0.5.5 now for me. It does seem to get further, but (i guess) because of the old version it doesn't support the `opencode` provider yet ``` 7s Run sst/opencode/github@latest Run curl -fsSL https://opencode.ai/install | bash Downloading opencode version: 0.5.5 ... #=#=# ################### 27.1% ##################################################### 74.3% ###################################################################### 97.3% ######################################################################## 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 m9tdev... permission: admin Creating comment... opencode session ses_69c3622a3ffe7jFIOoxZtd7Ipt Checking out new branch... Switched to a new branch 'opencode/issue87-20250919210317' Fetching prompt data for issue... Sending message to opencode... 1 | (function (...args) { super(...args); }) ^ ProviderModelNotFoundError: ProviderModelNotFoundError data: { providerID: "opencode", modelID: "grok-code", }, at new NamedError (1:23) at new ProviderModelNotFoundError (/$bunfs/root/opencode:59469:9) at getModel (/$bunfs/root/opencode:116933:13) Updating comment... ``` Seems that providing the `VERSION` env var doesn't have an effect and using `uses: sst/opencode/github@dev` in combination with the env var results in the same error as using `sst/opencode/github@v0.10.2`
Author
Owner

@fwang commented on GitHub (Sep 19, 2025):

@m9tdev ah got it. im in the middle of revamping the gh actions stuff.. will try to get a version out early next week.

@fwang commented on GitHub (Sep 19, 2025): @m9tdev ah got it. im in the middle of revamping the gh actions stuff.. will try to get a version out early next week.
Author
Owner

@fbraza commented on GitHub (Sep 20, 2025):

You rock @fwang thank loads for the good work. Looking forward

@fbraza commented on GitHub (Sep 20, 2025): You rock @fwang thank loads for the good work. Looking forward
Author
Owner

@rohit-gohri commented on GitHub (Sep 22, 2025):

Still an issue - downloading 0.5.5 version

Image
@rohit-gohri commented on GitHub (Sep 22, 2025): Still an issue - downloading 0.5.5 version <img width="691" height="109" alt="Image" src="https://github.com/user-attachments/assets/11c6272b-846c-4e3a-8fd9-5168bcd28214" />
Author
Owner

@rekram1-node commented on GitHub (Sep 22, 2025):

@rohit-gohri can you share your action yml definition?

@rekram1-node commented on GitHub (Sep 22, 2025): @rohit-gohri can you share your action yml definition?
Author
Owner

@rohit-gohri commented on GitHub (Sep 22, 2025):

I'm trying to use with GITHUB_TOKEN rather than with app

I tried with latest and it gave me this error:

124272 |           method: "POST",
124273 |           headers: {
124274 |             Authorization: `***
124275 |           }
124276 |         });
124277 |           const responseJson2 = await response2.json();
                                                             ^
SyntaxError: Failed to parse JSON
      at exchangeForAppToken (/$bunfs/root/opencode:124277:53)

I also tried using sst/opencode/github@dev and it gave me this error:

bun install v1.2.22 (6bafe260)
error: @types/bun@catalog: failed to resolve
# SEE: https://opencode.ai/docs/github/
name: opencode

on:
  issue_comment:
    types: [created]

jobs:
  opencode:
    if: |
      contains(github.event.comment.body, '/oc') ||
      contains(github.event.comment.body, '/opencode')

    runs-on: dp-ubuntu-2204 # self-hosted runner

    permissions:
      id-token: write
      contents: write
      pull-requests: write
      issues: write
      packages: read

    steps:
      - name: Checkout repository
        uses: actions/checkout@v5
        with:
          fetch-depth: 1

      - name: Create user config opencode.json
        run: |
          mkdir -p ~/.config/opencode
          cp opencode.json > ~/.config/opencode/opencode.json

      - name: Install and configure Node.js
        uses: actions/setup-node@v5
        with:
          node-version: "22.x"

      - name: Run opencode
        uses: sst/opencode/github@latest
        # Don't let LLM spend too many tokens/time on a task
        timeout-minutes: 10
        env:
          LITE_LLM_API_KEY: ${{ secrets.LITE_LLM_API_KEY }}
        with:
          share: false
          token: ${{ secrets.GITHUB_TOKEN }}
          model: "lite_llm/vertex_ai/claude-sonnet-4" # defined in opencode.json
@rohit-gohri commented on GitHub (Sep 22, 2025): I'm trying to use with GITHUB_TOKEN rather than with app I tried with latest and it gave me this error: ```log 124272 | method: "POST", 124273 | headers: { 124274 | Authorization: `*** 124275 | } 124276 | }); 124277 | const responseJson2 = await response2.json(); ^ SyntaxError: Failed to parse JSON at exchangeForAppToken (/$bunfs/root/opencode:124277:53) ``` I also tried using `sst/opencode/github@dev` and it gave me this error: ```log bun install v1.2.22 (6bafe260) error: @types/bun@catalog: failed to resolve ``` ```yml # SEE: https://opencode.ai/docs/github/ name: opencode on: issue_comment: types: [created] jobs: opencode: if: | contains(github.event.comment.body, '/oc') || contains(github.event.comment.body, '/opencode') runs-on: dp-ubuntu-2204 # self-hosted runner permissions: id-token: write contents: write pull-requests: write issues: write packages: read steps: - name: Checkout repository uses: actions/checkout@v5 with: fetch-depth: 1 - name: Create user config opencode.json run: | mkdir -p ~/.config/opencode cp opencode.json > ~/.config/opencode/opencode.json - name: Install and configure Node.js uses: actions/setup-node@v5 with: node-version: "22.x" - name: Run opencode uses: sst/opencode/github@latest # Don't let LLM spend too many tokens/time on a task timeout-minutes: 10 env: LITE_LLM_API_KEY: ${{ secrets.LITE_LLM_API_KEY }} with: share: false token: ${{ secrets.GITHUB_TOKEN }} model: "lite_llm/vertex_ai/claude-sonnet-4" # defined in opencode.json ```
Author
Owner

@rekram1-node commented on GitHub (Sep 22, 2025):

token: ${{ secrets.GITHUB_TOKEN }}

this is the issue

remove that it should work

@rekram1-node commented on GitHub (Sep 22, 2025): > token: ${{ secrets.GITHUB_TOKEN }} this is the issue remove that it should work
Author
Owner

@rohit-gohri commented on GitHub (Sep 22, 2025):

@rekram1-node it doesn't work if I remove the token:

Run sst/opencode/github@latest
  with:
    share: false
    model: lite_llm/vertex_ai/claude-sonnet-4
  env:
    LITE_LLM_API_KEY: ***
Run curl -fsSL https://opencode.ai/install | bash
  
Downloading opencode version: 0.5.5 ...
#####################                                                     29.3%
######################################################################## 100.0%
Successfully added opencode to $PATH in /home/runner/.bashrc
Added /home/runner/.opencode/bin to $GITHUB_PATH
Run opencode github run
  opencode github run
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    LITE_LLM_API_KEY: ***
    MODEL: lite_llm/vertex_ai/claude-sonnet-4
    SHARE: false
  
124272 |           method: "POST",
124273 |           headers: {
124274 |             Authorization: `***
124275 |           }
124276 |         });
124277 |           const responseJson2 = await response2.json();
                                                             ^
SyntaxError: Failed to parse JSON
      at exchangeForAppToken (/$bunfs/root/opencode:124277:53)
Error: Failed to parse JSON
Error: Process completed with exit code 1.
@rohit-gohri commented on GitHub (Sep 22, 2025): @rekram1-node it doesn't work if I remove the token: ```log Run sst/opencode/github@latest with: share: false model: lite_llm/vertex_ai/claude-sonnet-4 env: LITE_LLM_API_KEY: *** Run curl -fsSL https://opencode.ai/install | bash Downloading opencode version: 0.5.5 ... ##################### 29.3% ######################################################################## 100.0% Successfully added opencode to $PATH in /home/runner/.bashrc Added /home/runner/.opencode/bin to $GITHUB_PATH Run opencode github run opencode github run shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: LITE_LLM_API_KEY: *** MODEL: lite_llm/vertex_ai/claude-sonnet-4 SHARE: false 124272 | method: "POST", 124273 | headers: { 124274 | Authorization: `*** 124275 | } 124276 | }); 124277 | const responseJson2 = await response2.json(); ^ SyntaxError: Failed to parse JSON at exchangeForAppToken (/$bunfs/root/opencode:124277:53) Error: Failed to parse JSON Error: Process completed with exit code 1. ```
Author
Owner

@rohit-gohri commented on GitHub (Sep 22, 2025):

The only way I got it working was with this fork - https://github.com/sst/opencode/compare/dev...rohit-gohri:opencode:dev
where I upgraded "@opencode-ai/sdk" to "0.11.1" and fixed build issues ( with opencode locally 😅 )

Happy to open a PR though not sure if this is the direction you want to go

@rohit-gohri commented on GitHub (Sep 22, 2025): The only way I got it working was with this fork - https://github.com/sst/opencode/compare/dev...rohit-gohri:opencode:dev where I upgraded "@opencode-ai/sdk" to "0.11.1" and fixed build issues ( with opencode locally 😅 ) Happy to open a PR though not sure if this is the direction you want to go
Author
Owner

@rekram1-node commented on GitHub (Sep 22, 2025):

@fwang is in charge of github action so he would know what is best here

@rekram1-node commented on GitHub (Sep 22, 2025): @fwang is in charge of github action so he would know what is best here
Author
Owner

@rmoriz commented on GitHub (Sep 22, 2025):

Also wonder if Github Workflow integration works at all with Githup Copilot. If not, that should be documented. I didn't manage to get it working at all a couple of days ago.

@rmoriz commented on GitHub (Sep 22, 2025): Also wonder if Github Workflow integration works at all with Githup Copilot. If not, that should be documented. I didn't manage to get it working at all a couple of days ago.
Author
Owner

@beaussan commented on GitHub (Oct 6, 2025):

For anyone finding this comment, one version of the github action that actually works is 0.6.10, since it's the last commit (from a month ago) that didn't had the catalog: as bun types versions

Currently "works" with the following:

name: opencode

on:
  issue_comment:
    types: [created]

jobs:
  opencode:
    if: |
      contains(github.event.comment.body, '/oc') ||
      contains(github.event.comment.body, '/opencode')
    runs-on: ubuntu-latest
    permissions:
      id-token: write
      contents: write
      pull-requests: write
      issues: write
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 1
      - name: Run opencode
        uses: sst/opencode/github@v0.6.10
        env:
          ...
        with:
          model: ...
          share: false
          token: ${{ secrets.GITHUB_TOKEN }}

@fwang if there is a way to try / help out the new github integration, let me know!

@beaussan commented on GitHub (Oct 6, 2025): For anyone finding this comment, one version of the github action that actually works is `0.6.10`, since it's the last commit (from a month ago) that didn't had the `catalog:` as bun types versions Currently "works" with the following: ``` name: opencode on: issue_comment: types: [created] jobs: opencode: if: | contains(github.event.comment.body, '/oc') || contains(github.event.comment.body, '/opencode') runs-on: ubuntu-latest permissions: id-token: write contents: write pull-requests: write issues: write steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 1 - name: Run opencode uses: sst/opencode/github@v0.6.10 env: ... with: model: ... share: false token: ${{ secrets.GITHUB_TOKEN }} ``` @fwang if there is a way to try / help out the new github integration, let me know!
Author
Owner

@jtag05 commented on GitHub (Oct 28, 2025):

I'm not seeing a more appropriate issue to lend my voice to but I am still experiencing this with @latest attemtping to use zai-coding-plan/glm-4.6. Pinning the version to v0.6.10 works but seems to choking when I enable the posthog mcp I have wired up. Happy to open a new issue if that's preferable.

@jtag05 commented on GitHub (Oct 28, 2025): I'm not seeing a more appropriate issue to lend my voice to but I am still experiencing this with @latest attemtping to use `zai-coding-plan/glm-4.6`. Pinning the version to `v0.6.10` works but seems to choking when I enable the posthog mcp I have wired up. Happy to open a new issue if that's preferable.
Author
Owner

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

new issue would be great @jtag05

@rekram1-node commented on GitHub (Oct 28, 2025): new issue would be great @jtag05
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1687