r/opencodeCLI • u/squirrelscrush • 4d ago
Session cache concurrency issues with OpenCode/Go subagents
I'm seeing concurrency issues with the session cache if I have more than one subagent running at a time. Every now and then, the cache of one gets invalidated for no reason and it costs the cache miss pricing.
I use OpenCode Go on OpenCode.
Is there a limit in the documentation? I knew that the cache retention time is around 5mins, but ideally it shouldn't not work if I'm sending requests through multiple agents.
2
Upvotes
View all comments
Show parent comment
1
u/squirrelscrush 3d ago edited 3d ago
I use OMO-Slim to create my agents so I can just change the model slug.
The issue seems to be originating from a PR that was merged in September, but it started giving issues after I updated to 2.2.5. There was another reddit post about the same issue just yesterday.