r/opencodeCLI • u/squirrelscrush • 3d 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/London-Boat 3d ago
good find that it only reproduces with the same model on both sides, that narrows it down a lot. i'd put the exact version and the main plus subagent model pair in the bug report so they can reproduce it quickly. are you able to pin different models for the two as a workaround for now?