Commit Graph
1 Commits
Author SHA1 Message Date
wushenghua 0021159ae3 fix(usage): read OpenCode v2 store and batch machine reports
The reconciler only read the legacy message table, so v2 sessions (session_v2/session_message) were invisible. Read both tables with v2 precedence and parse v2 assistant rows by type column and nested model ids. Split machine usage reports into 250-session batches to stay under the hub's 500-session cap. Add a standalone script to attach unattributed OpenCode sessions' token totals as synthetic reconciled usage.
2026-11-24 18:16:13 +08:00