mirror of
https://github.com/stablyai/orca.git
synced 2026-11-03 02:27:43 +00:00
fix(usage): include OpenCode cached input in totals
Normalize OpenCode cache reads and writes consistently across usage views, persistence and telemetry. Continues #20187. Co-authored-by: griffinmartin <griffinmartin@users.noreply.github.com>
This commit is contained in:
@@ -9,7 +9,8 @@ import type {
|
||||
// Why: v4 reads OpenCode 2's `session_v2` table; v3 caches miss every v2 session.
|
||||
// v5 merges a migrated session's two rows per column instead of picking one, so
|
||||
// v4 caches hold zeroed costs and pre-migration metadata.
|
||||
export const OPENCODE_USAGE_SCHEMA_VERSION = 5
|
||||
// v6 normalizes input; v7 preserves writes separately for telemetry.
|
||||
export const OPENCODE_USAGE_SCHEMA_VERSION = 7
|
||||
|
||||
export const openCodeUsageProvider = {
|
||||
id: 'opencode',
|
||||
|
||||
Reference in New Issue
Block a user