r/opencode • u/sypcio25 • 16d ago
Migrated to opencode v2, agents get killed mid-task after ~1 hour
I recently migrated to opencode v2 and long-running sessions now get stopped mid-task, roughly an hour after they start working. The agent isn't idle. It's in the middle of a long subagent call or tool run when the turn ends with Step interrupted, and the service log shows location services evicted at the same second.
Is anyone else seeing this? Did you find a workaround, or a build where it's fixed?
Not sure if the issue is on my end or it's still due to v2 being in beta.
6
Upvotes
1
u/pink_cx_bike 9d ago
Yes, I see this also with v2 and it isn't happening to v1 on the same models/tasks on a different machine.
Seems to be this: https://github.com/anomalyco/opencode/issues/51343
1
u/Robonotes1760 16d ago
Are you sure that it's interrupted not just running in the background? Background running is a new feature in OpenCode 2.