codex-usage v2.3.5
codex-usage v2.3.5
v2.3.5 fixes a remaining replay-accounting edge case for modern fork rollouts that copy a parent transcript before the child task starts.
- Pending modern forks remain pending across scans even when the JSONL file does not grow. Copied parent snapshots are no longer read from offset zero and charged as child usage.
- Added a regression test covering an unchanged pending fork followed by the real child continuation.
- The derived-data schema is now v7. Existing databases are preserved and require an explicit historical rebuild so previously indexed replay rows can be removed from the derived ledger.
- Source JSONL files are never modified. Token totals remain local JSONL accounting, not an OpenAI bill or account quota.
v2.3.5 修复现代 fork rollout 在子任务尚未开始、但父会话历史已经复制完成时的剩余统计缺陷。
- 即使 JSONL 文件大小没有变化,待定的现代 fork 也会持续等待 replay 边界,不再从 offset 0 读取并把父历史计入子会话。
- 新增“待定 fork 在文件不增长时再次扫描、随后追加真实子任务”的回归测试。
- 派生数据 schema 升至 v7。已有统计库会保留原数据并要求明确执行历史重建,以移除此前已经写入的 replay 重复行。
- 源 JSONL 不会被修改;Token 仍是本机 JSONL 统计,不代表 OpenAI 账单或账号配额。