Skip to content

OpenCode provider: opencode serve processes never exit after a thread finishes (~0.5 GB each) #41469

Closed as duplicate

Description

@vineeth19211

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Run T3 Code v0.1.11 headless (t3 serve) as a systemd user service on Ubuntu 24.04, with an OpenCode provider.
  2. Run 12 OpenCode threads to completion.
  3. Wait until no turn is running.
  4. Run ps -eo pid,etime,rss,args | grep "[o]pencode serve" and add up the RSS column.

Expected behavior

When an OpenCode thread finishes, the opencode serve process it used is stopped, or reused/pooled for later threads.

Actual behavior

Nothing stops the opencode serve process after its thread finishes. After the 12 runs, 15 opencode serve processes were still running, using about 7 GB in total (roughly 0.4 to 0.5 GB each). Only restarting the T3 Code service frees them.

Impact

Major degradation or frequent failure

Version or commit

v0.1.11

Environment

T3 Code v0.1.11, self-hosted on Ubuntu 24.04 (6 vCPU, 11 GiB RAM), running as a systemd user service. Provider: OpenCode.

Logs or stack traces

None captured yet. The process list from step 4 is the evidence.

Workaround

A nightly systemd timer restarts the T3 Code service when no turn is running. This frees the processes but interrupts the server.

Related (not duplicates)

Activity

  1. juliusmarminge commented on Nov 23, 2026

    @juliusmarminge
    Member

    This is the same problem as #41174, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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