Skills 2026-10-09 20:04 UTC
coder_eval
Committed by bai-uipath. Update Category: Bug Fixes & Stability Improvements. Commit details: fix(claude-code): book only the turn's own usage on a resumed session (#221). This update resolves known runtime errors and enhances system reliability.
CommitRaw commit message
fix(claude-code): book only the turn's own usage on a resumed session (#221) A resumed Claude Code CLI restores its session's running totals, so the ResultMessage `model_usage` and `total_cost_usd` of dialog turn N count turns 1..N. Each turn's TokenUsage was that snapshot, and the task total summed the snapshots, inflating tokens and cost of every multi-turn task and of the simulated user. Subtract the totals the same session last reported; a counter that moved backwards is booked whole. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>