anomalyco / anomalyco/opencode

Agent loops stalls randomly silently (working indefinitely)

Open
#46,310 7 comments 0 reactions 1 assignee View on GitHub

@nexxeln is already working on this.

Since Aug 30, 2026.

2.0
Dominant language
TypeScript
Stars
209k
Forks
27.5k
Avg merge
7h 2m
Merged PRs (30d)
384

Description

Description

I am using the GLM-5.3-Flash model from Z.AI. After coming to my long running sessions overnight, I am seeing sessions in perpetual working state but stuck on a toolcall. On tab bar most sessions (even noramlly working ones) are getting "!" symbol instead of the animation too.

Happened a lot of times in multiple sessions. No toolcall fail. No API fail reported. It is just animating working indefinitely.

Workaround: <esc><esc> continue <enter>

Plugins

None

OpenCode version

0.0.0.-beta-18743

Steps to reproduce

Multiple tabs and give a long job like compiling and reporting anything, a long job shorts the bg service into thinking "!"(this symbol means input needed from user, I presume) for the background tab and the loop stalls. Can happen on long thinking too.

Screenshot and/or share link
Image
Operating System

debian unstable

Terminal

yggterm

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.