You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix null safety in response array loops and OpenCode method reference
- Fix TypeError: getOpenCodeSessionData was called on tokenTracker directly
instead of tokenTracker.openCode where the method actually lives; this
caused 'tokenTracker.getOpenCodeSessionData is not a function' warnings
during backend sync for every OpenCode session file.
- Fix TypeError: Cannot read properties of undefined (reading 'value')
in getModelUsageFromSession: response arrays reconstructed from VS Code
delta-based JSONL can contain null/undefined entries; use optional
chaining (responseItem?.value) instead of bare property access.
- Fix TypeError: Cannot read properties of undefined (reading 'kind')
in analyzeSessionUsage and trackEnhancedMetrics: add an explicit
'if (!responseItem) continue' guard at the top of every loop that
iterates over request.response or event.v arrays, covering both the
delta-path and JSON-path code branches.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments