bd7c08ce3e
Session cost (USD/CNY) was reset to zero on every session restore because only total_tokens was persisted. Carry session/subagent cost through SessionMetadata so resumed sessions show the correct billing. Also extract repeated cost-sync lines into App::sync_cost_to_metadata. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>