技能 2026-10-09 20:04 UTC
coder_eval
由提交人 bai-uipath 提交,主要更新类型为:问题缺陷修复与稳定性提升。提交说明:fix(claude-code): book only the turn's own usage on a resumed session (#221)。解决了已知运行时异常与边界错误,提升系统稳定性。
Commit提交信息原文
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>