TypeError: undefined is not an object (evaluating 'costInfo?.cache.read') #3292

Closed
opened 2026-02-16 17:39:32 -05:00 by yindo · 2 comments
Owner

Originally created by @waynehearn on GitHub (Dec 4, 2025).

Description

Build 1.0.130. I use LLM through CoPilot.

OpenCode version

1.0.130

Steps to reproduce

129 was work but crashed OOM. Then it updated and now it's broken.

Screenshot and/or share link

Image

Operating System

Windows

Terminal

Windows Terminal using Msys2

Originally created by @waynehearn on GitHub (Dec 4, 2025). ### Description Build 1.0.130. I use LLM through CoPilot. ### OpenCode version 1.0.130 ### Steps to reproduce 129 was work but crashed OOM. Then it updated and now it's broken. ### Screenshot and/or share link <img width="737" height="283" alt="Image" src="https://github.com/user-attachments/assets/32a3ddc5-b1fe-4327-8cf1-915abc30c795" /> ### Operating System Windows ### Terminal Windows Terminal using Msys2
yindo added the opentuibug labels 2026-02-16 17:39:32 -05:00
yindo closed this issue 2026-02-16 17:39:32 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 4, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1166: Similar TypeError accessing cost properties when using GitHub CoPilot - both show 'undefined is not an object' pattern with cost-related properties
  • #2891: Cost information not properly initialized when using CoPilot (shows cost as 0)
  • #534: Cache read pricing not being calculated correctly - involves the 'cache.read' property referenced in your error

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 4, 2025): This issue might be a duplicate of existing issues. Please check: - #1166: Similar TypeError accessing cost properties when using GitHub CoPilot - both show 'undefined is not an object' pattern with cost-related properties - #2891: Cost information not properly initialized when using CoPilot (shows cost as 0) - #534: Cache read pricing not being calculated correctly - involves the 'cache.read' property referenced in your error Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 4, 2025):

@waynehearn upgrade to latest, fixed

@rekram1-node commented on GitHub (Dec 4, 2025): @waynehearn upgrade to latest, fixed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3292