OpenCode GitHub Action hangs indefinitely at “Sending message to opencode…” (no output) #7150

Open
opened 2026-02-16 18:06:18 -05:00 by yindo · 2 comments
Owner

Originally created by @enact-on on GitHub (Jan 22, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

OpenCode GitHub Action starts successfully (installs OpenCode, configures git, asserts permissions, creates session + branch), but consistently hangs at:

Sending message to opencode...

Workflow does not complete and no agent response/output is produced.

Plugins

z.ai

OpenCode version

1.1.31

Steps to reproduce

GitHub Actions runner: ubuntu-latest

Runner version: 2.331.0

OpenCode version: 1.1.31 (installed via curl -fsSL https://opencode.ai/install | bash)

Provider: ZHIPU

Model: zai/glm-4.7

Agent: orchestrator

Trigger: issues: opened/edited

Screenshot and/or share link

Image

Operating System

github runner ubuntu

Terminal

git bash

Originally created by @enact-on on GitHub (Jan 22, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description OpenCode GitHub Action starts successfully (installs OpenCode, configures git, asserts permissions, creates session + branch), but consistently hangs at: Sending message to opencode... Workflow does not complete and no agent response/output is produced. ### Plugins z.ai ### OpenCode version 1.1.31 ### Steps to reproduce GitHub Actions runner: ubuntu-latest Runner version: 2.331.0 OpenCode version: 1.1.31 (installed via curl -fsSL https://opencode.ai/install | bash) Provider: ZHIPU Model: zai/glm-4.7 Agent: orchestrator Trigger: issues: opened/edited ### Screenshot and/or share link <img width="1509" height="761" alt="Image" src="https://github.com/user-attachments/assets/016f4c54-74c1-4c36-81ae-ff549532e138" /> ### Operating System github runner ubuntu ### Terminal git bash
yindo added the bug label 2026-02-16 18:06:18 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 22, 2026):

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

  • #4672: OpenCode Github Agent Stuck! - Similar symptoms with agent hanging at "Sending message to opencode..."
  • #8203: opencode run hangs forever on API errors (breaks CLI/automation integrations) - Related issue where OpenCode hangs on API errors instead of failing fast
  • #7958: ProviderModelNotFoundError for custom provider in GitHub Action - Similar GitHub Action failure with the zhipuai provider (same config you're using)
  • #9493: Opencode quits/hangs when models.dev not responding - Related hanging issue when external services are unavailable

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

@github-actions[bot] commented on GitHub (Jan 22, 2026): This issue might be a duplicate of existing issues. Please check: - #4672: OpenCode Github Agent Stuck! - Similar symptoms with agent hanging at "Sending message to opencode..." - #8203: opencode run hangs forever on API errors (breaks CLI/automation integrations) - Related issue where OpenCode hangs on API errors instead of failing fast - #7958: ProviderModelNotFoundError for custom provider in GitHub Action - Similar GitHub Action failure with the zhipuai provider (same config you're using) - #9493: Opencode quits/hangs when models.dev not responding - Related hanging issue when external services are unavailable Feel free to ignore if none of these address your specific case.
Author
Owner

@enact-on commented on GitHub (Jan 22, 2026):

Is this an issue?

github workflow uses client.session.chat

https://github.com/anomalyco/opencode/blob/9fc182baf23536619601dcf43be7d5539b8ad92e/github/index.ts#L614

but its not listed here

https://opencode.ai/docs/sdk/#sessions

@enact-on commented on GitHub (Jan 22, 2026): Is this an issue? github workflow uses client.session.chat https://github.com/anomalyco/opencode/blob/9fc182baf23536619601dcf43be7d5539b8ad92e/github/index.ts#L614 but its not listed here https://opencode.ai/docs/sdk/#sessions
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7150