Failed to parse the text response with github workflow #1484

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

Originally created by @alexaka1 on GitHub (Aug 25, 2025).

Originally assigned to: @fwang on GitHub.

Maybe I have skill issues, but opencode is not working with its GitHub integration. I have set it up but it's not able to summarize PRs.

Eg. see this run: https://github.com/alexaka1/distroless-dotnet-healthchecks/actions/runs/17205772206/job/48805971861

https://github.com/alexaka1/distroless-dotnet-healthchecks/pull/672#issuecomment-3219642869

https://github.com/alexaka1/distroless-dotnet-healthchecks/blob/fddeddd27a44965b3ee634b2928ac0e1bd1f80af/.github/workflows/opencode.yml

Originally created by @alexaka1 on GitHub (Aug 25, 2025). Originally assigned to: @fwang on GitHub. Maybe I have skill issues, but opencode is not working with its GitHub integration. I have set it up but it's not able to summarize PRs. Eg. see this run: https://github.com/alexaka1/distroless-dotnet-healthchecks/actions/runs/17205772206/job/48805971861 https://github.com/alexaka1/distroless-dotnet-healthchecks/pull/672#issuecomment-3219642869 https://github.com/alexaka1/distroless-dotnet-healthchecks/blob/fddeddd27a44965b3ee634b2928ac0e1bd1f80af/.github/workflows/opencode.yml
yindo closed this issue 2026-02-16 17:31:11 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 25, 2025):

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

  • #2188: Similar JSON parsing failure with "JSON parsing failed: Text" error
  • #2135: Similar parsing error with "UnknownError: Failed to parse" that makes sessions unusable
  • #1818: GitHub action failures related to version fetching and setup issues
  • #1417: GitHub Integration issues where the workflow runs but doesn't work as expected

The core issue appears to be related to text/JSON parsing failures in the GitHub workflow context. Issues #2188 and #2135 specifically deal with similar parsing errors that could be related to your "Failed to parse the text response" error.

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

@github-actions[bot] commented on GitHub (Aug 25, 2025): This issue might be a duplicate of existing issues. Please check: - #2188: Similar JSON parsing failure with "JSON parsing failed: Text" error - #2135: Similar parsing error with "UnknownError: Failed to parse" that makes sessions unusable - #1818: GitHub action failures related to version fetching and setup issues - #1417: GitHub Integration issues where the workflow runs but doesn't work as expected The core issue appears to be related to text/JSON parsing failures in the GitHub workflow context. Issues #2188 and #2135 specifically deal with similar parsing errors that could be related to your "Failed to parse the text response" error. Feel free to ignore if none of these address your specific case.
Author
Owner

@danielbollomsend commented on GitHub (Aug 26, 2025):

Just adding that I'm seeing the same thing - can't share the run as it's on a private repo, but exactly the same error message at the same point in the process. Config is the same as above, except we are using google/gemini-2.5-flash as a model.

I do seem to be able to run "summarise this pr" style tasks fine, but if I ask opencode to actually work on an issue it fails with the "Failed to parse the text response" error every time.

Could definitely be a setup issue, but there isn't much context in the logs so I'm not really sure

@danielbollomsend commented on GitHub (Aug 26, 2025): Just adding that I'm seeing the same thing - can't share the run as it's on a private repo, but exactly the same error message at the same point in the process. Config is the same as above, except we are using `google/gemini-2.5-flash` as a model. I do seem to be able to run "summarise this pr" style tasks fine, but if I ask opencode to actually work on an issue it fails with the `"Failed to parse the text response"` error every time. Could definitely be a setup issue, but there isn't much context in the logs so I'm not really sure
Author
Owner

@mateus-ito commented on GitHub (Aug 27, 2025):

Same thing happening here. Just configured the repo with opencode github install, exactly as the documentation says.

I also can’t share because the repo is private, but we're using github-copilot/claude-3.7-sonnet-thought, and anything works, from issues to PRs.

@mateus-ito commented on GitHub (Aug 27, 2025): Same thing happening here. Just configured the repo with `opencode github install`, exactly as the documentation says. I also can’t share because the repo is private, but we're using `github-copilot/claude-3.7-sonnet-thought`, and anything works, from issues to PRs.
Author
Owner

@bobysf12 commented on GitHub (Aug 28, 2025):

Yup same issue here.

@bobysf12 commented on GitHub (Aug 28, 2025): Yup same issue here.
Author
Owner

@Antonet99 commented on GitHub (Aug 28, 2025):

Same issue here. Did you find a solution?

@Antonet99 commented on GitHub (Aug 28, 2025): Same issue here. Did you find a solution?
Author
Owner

@fwang commented on GitHub (Aug 28, 2025):

looking into this

anyone has share turned on? can you send me a share link to the failed run?

@fwang commented on GitHub (Aug 28, 2025): looking into this anyone has `share` turned on? can you send me a share link to the failed run?
Author
Owner
@alexaka1 commented on GitHub (Aug 28, 2025): Eg. https://github.com/alexaka1/distroless-dotnet-healthchecks/pull/672#issuecomment-3219642869 https://github.com/alexaka1/distroless-dotnet-healthchecks/issues/695#issuecomment-3233022309
Author
Owner

@fwang commented on GitHub (Aug 28, 2025):

@alexaka1 oh nice.. if u can keep them around.. i'll dig into it later today

@fwang commented on GitHub (Aug 28, 2025): @alexaka1 oh nice.. if u can keep them around.. i'll dig into it later today
Author
Owner

@alexaka1 commented on GitHub (Aug 28, 2025):

I don't know if or when they expire. I followed the default as closely as possible, and I don't intend to delete them. So hopefully they'll be there.

@alexaka1 commented on GitHub (Aug 28, 2025): I don't know if or when they expire. I followed the default as closely as possible, and I don't intend to delete them. So hopefully they'll be there.
Author
Owner

@alexaka1 commented on GitHub (Sep 1, 2025):

I was scraping github (by hand) for other repos that use this action, and I managed to find one that ran into the same issue. I will look for more

https://github.com/deadronos/SpaceAutoBattler/pull/57#issuecomment-3238767137

@alexaka1 commented on GitHub (Sep 1, 2025): I was scraping github (by hand) for other repos that use this action, and I managed to find one that ran into the same issue. I will look for more https://github.com/deadronos/SpaceAutoBattler/pull/57#issuecomment-3238767137
Author
Owner

@alexaka1 commented on GitHub (Sep 7, 2025):

Without changing anything meaningful, it randomly worked for an issue comment. https://github.com/alexaka1/distroless-dotnet-healthchecks/issues/743#issuecomment-3258947259

But then immediately did not work for a PR.
https://github.com/alexaka1/distroless-dotnet-healthchecks/pull/741#issuecomment-3263616053

(I thought maybe pinning to the cli tags instead of the action tags would work, but only after I realized the action downloads the latest opencode anyway, so this cannot affect anything)

@alexaka1 commented on GitHub (Sep 7, 2025): Without changing anything meaningful, it randomly worked for an issue comment. https://github.com/alexaka1/distroless-dotnet-healthchecks/issues/743#issuecomment-3258947259 But then immediately did not work for a PR. https://github.com/alexaka1/distroless-dotnet-healthchecks/pull/741#issuecomment-3263616053 (I thought maybe pinning to the cli tags instead of the action tags would work, but only after I realized the action downloads the latest opencode anyway, so this cannot affect anything)
Author
Owner

@alexaka1 commented on GitHub (Sep 21, 2025):

@fwang, have you had a chance to look at this? What can I do to help? I keep trying the workflow from time to time, but I still get the same error.

@alexaka1 commented on GitHub (Sep 21, 2025): @fwang, have you had a chance to look at this? What can I do to help? I keep trying the workflow from time to time, but I still get the same error.
Author
Owner

@alexaka1 commented on GitHub (Oct 19, 2025):

I'm still having the same issues and have no clue what I'm doing wrong. Would appreciate some guidance on how I can help resolve this. Although I am kinda giving up on opencode-github as it has not worked 99.999% of the time since opening this issue 🙁

@alexaka1 commented on GitHub (Oct 19, 2025): I'm still having the same issues and have no clue what I'm doing wrong. Would appreciate some guidance on how I can help resolve this. Although I am kinda giving up on opencode-github as it has not worked 99.999% of the time since opening this issue 🙁
Author
Owner

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

ill take a look today

@rekram1-node commented on GitHub (Oct 19, 2025): ill take a look today
Author
Owner

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

@alexaka1 is this the action is question? https://github.com/alexaka1/distroless-dotnet-healthchecks/blob/main/.github/workflows/opencode.yml

Github copilot is oauth only isn't it? You won't be able to use it in a github action easily right now. I read that there are some hacks to do that but opencode doesn't support those rn.

I could be totally wrong about oauth only but im fairly sure that is the case and for PAT you can only manage github copilot access / settings not actually interact with it

If you updated your config to use basically any other provider it should work

You could even use a free model (free for now):

  • opencode/code-supernova
  • opencode/grok-code

Also i'd recommend updating the action to point at latest because it got updated recently

@rekram1-node commented on GitHub (Oct 19, 2025): @alexaka1 is this the action is question? https://github.com/alexaka1/distroless-dotnet-healthchecks/blob/main/.github/workflows/opencode.yml Github copilot is oauth only isn't it? You won't be able to use it in a github action easily right now. I read that there are some hacks to do that but opencode doesn't support those rn. I could be totally wrong about oauth only but im fairly sure that is the case and for PAT you can only manage github copilot access / settings not actually interact with it If you updated your config to use basically any other provider it should work You could even use a free model (free for now): - opencode/code-supernova - opencode/grok-code Also i'd recommend updating the action to point at latest because it got updated recently
Author
Owner

@alexaka1 commented on GitHub (Oct 20, 2025):

I remember trying an OpenAI api key too and that also didn't work. But I'll try again. https://github.com/alexaka1/distroless-dotnet-healthchecks/commit/e985c2f83a0fad5347d5acdb0bf3a8a86152d9d3

@alexaka1 commented on GitHub (Oct 20, 2025): I remember trying an OpenAI api key too and that also didn't work. But I'll try again. https://github.com/alexaka1/distroless-dotnet-healthchecks/commit/e985c2f83a0fad5347d5acdb0bf3a8a86152d9d3
Author
Owner
@alexaka1 commented on GitHub (Oct 20, 2025): @rekram1-node Sadly, exact same issue with openai provider. https://github.com/alexaka1/distroless-dotnet-healthchecks/pull/862#issuecomment-3420942013 https://github.com/alexaka1/distroless-dotnet-healthchecks/actions/runs/18645688008/job/53152394424 https://github.com/alexaka1/distroless-dotnet-healthchecks/blob/cb8cd71c587903aea08bc0b74a45874ab22cba16/.github/workflows/opencode.yml#L28-L34
Author
Owner

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

@alexaka1 mind updating your action to point at latest?

ill take a look at your action more but thatd be a good first step

@rekram1-node commented on GitHub (Oct 20, 2025): @alexaka1 mind updating your action to point at latest? ill take a look at your action more but thatd be a good first step
Author
Owner

@alexaka1 commented on GitHub (Oct 20, 2025):

@rekram1-node I have updated to the latest tag, for whatever reason Renovate does not pick up your repo's tag format (that's a me problem). But latest tag worked with OpenAI provider (after they forced me through KYC, which was not needed a month ago 😢). So thanks! It sucks that GH copilot is not available, but imo in that case opencode should not allow it to be configured. Because at least back then it did, and I commited the code that it gave me.

@alexaka1 commented on GitHub (Oct 20, 2025): @rekram1-node I have updated to the latest tag, for whatever reason Renovate does not pick up your repo's tag format (that's a me problem). But latest tag worked with OpenAI provider (after they forced me through KYC, which was not needed a month ago 😢). So thanks! It sucks that GH copilot is not available, but imo in that case opencode should not allow it to be configured. Because at least back then it did, and I commited the code that it gave me.
Author
Owner

@alexaka1 commented on GitHub (Oct 20, 2025):

Renovate can be fixed by this: https://github.com/alexaka1/distroless-dotnet-healthchecks/commit/ca3e57e67c589f16898ea4f53b7d3085171ec6f4

@alexaka1 commented on GitHub (Oct 20, 2025): Renovate can be fixed by this: https://github.com/alexaka1/distroless-dotnet-healthchecks/commit/ca3e57e67c589f16898ea4f53b7d3085171ec6f4
Author
Owner

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

but imo in that case opencode should not allow it to be configured.

I dropped it from the install options yesterday (havent released it yet)

@rekram1-node commented on GitHub (Oct 20, 2025): > but imo in that case opencode should not allow it to be configured. I dropped it from the install options yesterday (havent released it yet)
Author
Owner

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

Going to close since we resolved it, thanks for your patience

@rekram1-node commented on GitHub (Oct 20, 2025): Going to close since we resolved it, thanks for your patience
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1484