Files
openclaw/src
krissding e183d665ee fix(infra): add NaN guard for unparseable timestamp in session-cost-usage (#99420)
new Date(parsed.timestamp).getTime() can return NaN for unparseable
strings. Without a guard, NaN silently propagates into downstream
usage/cost calculations and corrupts billing data.

Add Number.isNaN(timestamp) check, falling back to 0 (same default
as the path when no timestamp key is present).

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-06 05:41:07 +00:00
..