You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenCode provider: opencode serve processes never exit after a thread finishes (~0.5 GB each) #41469
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
Run T3 Code v0.1.11 headless (t3 serve) as a systemd user service on Ubuntu 24.04, with an OpenCode provider.
Run 12 OpenCode threads to completion.
Wait until no turn is running.
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.
Activity
juliusmarminge commentedon Nov 23, 2026
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.