Skip to content

Build got stuck for 6h after delegating to explore subagent #23296

Closed as not planned

Description

@kenorb

Description

opencode session ses_262e1abf9ffeVB5WVmCDNq9qgx
...
|  task     {"description":"Extract Debian diff from patch","prompt":"/read-snippet /home/runner/.local/share/opencode/tool-output/tool_d9d1ec806001TEOgUR73r4OUcD --pattern \"tasks/Debian.yml\" --context 80","subagent_type":"explore","task_id":"","command":""}

model: opencode/gpt-5-codex

Most of the commands seems to have the timeout, maybe task should have it as well?

Plugins

n/a

OpenCode version

opencode-Linux-X64-v1.4.10 / anomalyco/opencode/github@v1.4.3

Steps to reproduce

No response

Screenshot and/or share link

Build: https://github.com/EA31337/ansible-role-wine/actions/runs/24585138411/job/71892710246
Could be related to GH-4672, but I think this could be different, since hang happen right after delegating to another agent.

Operating System

Ubuntu

Terminal

GitHub Runner

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    perfIndicates a performance issue or need for optimization
    on Apr 18, 2026
  2. github-actions commented on Apr 18, 2026

    @github-actions
    Contributor

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

    If your issue is distinct from all of the above, please add details explaining how it differs.

  3. removed
    bugSomething isn't working
    perfIndicates a performance issue or need for optimization
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. gf-mse commented on Jun 20, 2026

    @gf-mse

    I observe something similar with opencode 1.14.x - 1.17.x (current) -- after explore agent finishes, the build agent keeps showing a spinner and never finishes (for 1-5 hours or longer -- until killed by a custom watchdog script).

    Since the LLM is served locally by llama.cpp, I can see that there's no LLM activity, so it's a hang.

    Setup : a Debian Linux docker container running opencode, working with a local llama.cpp server serving a qwen3.6 instruct model.

    Task: opencode is invoked by by a script which traverses a tree of library modules, one call per each module; there is a "master" opencode session listening at a port, and the run session attach to it to do work; the idea is that it is possible to do an opencode attach -c to the same server and see what the current run process is doing.

    Sadly sometimes the run session hangs, and it is most annoying when it can not basically get past a specific module, so restarting the task does not help as it keeps getting stuck at the same spot.

    I was trying various workarounds, e.g. starting a new opencode process for each task, but it did not help much.

    So yes, seems like there's a bug and yes, a sub-agent timeout setting (15080) would likely help a lot.

  5. github-actions commented on Aug 20, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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