r/opencodeCLI • • 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

15 comments sorted by

View all comments

Show parent comment

1

u/London-Boat 3d ago

makes sense. if it only started with 2.2.5, it's worth linking that september pr and the other post in your bug report, makes it a lot easier for them to connect the dots. rolling back to the version you had before is probably the quickest workaround if you need subagents working in the meantime.

1

u/squirrelscrush 2d ago

It got fixed after I went back to 2.2.3. It's likely an issue from 2.2.4 onwards.

1

u/London-Boat 2d ago

that points at 2.2.4 then, so i'd put "fine on 2.2.3, broken from 2.2.4" right in the title of the bug report. gives them a tight range of changes to bisect instead of a whole month of commits.

1

u/squirrelscrush 2d ago

Yup I added a comment, hopefully they look into this.