Skip to content

OpenAI cache writes always reported as 0 #37745

Description

@dalemartyn

Description

Since 5.6 OpenAI is charging for cache writes. Opencode is reporting them as 0.

Cache reads work fine, so it feels like the write count isn't being picked up, which only matters now that they have started charging for them.

Plugins

No response

OpenCode version

1.18.3

Steps to reproduce

opencode stats shows read > 0, write = 0

Screenshot and/or share link

Image

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions