Skip to content

gut(session): remove vestigial model cost calculation (#2107)#2131

Merged
alexey-pelykh merged 1 commit intomainfrom
gut/session-remove-model-cost-calculation
Apr 8, 2026
Merged

gut(session): remove vestigial model cost calculation (#2107)#2131
alexey-pelykh merged 1 commit intomainfrom
gut/session-remove-model-cost-calculation

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Remove resolveModelCostConfig() and resolveModelAuthMode() calls from agent runner and status display
  • Remove showCost conditionals and cost estimation from response usage formatting
  • Remove costUsd from diagnostic event emission in agent runner
  • Remove cost line from /status output — usage tokens still displayed

Closes #2107

Test plan

  • pnpm check passes (format, typecheck, lint)
  • src/auto-reply/status.test.ts — 14 passing, 10 skipped (pre-existing)
  • src/utils/usage-format.test.ts — 2 passing
  • src/infra/session-cost-usage.test.ts — 9 passing
  • Updated test: verifies cost line never appears even with modelAuth: "api-key"

🤖 Generated with Claude Code

CLI runtimes manage their own API keys and billing — RemoteClaw has no
per-token cost tracking. Remove resolveModelCostConfig/resolveModelAuthMode
calls, showCost conditionals, and cost display from agent runner and status.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) April 8, 2026 12:37
@alexey-pelykh alexey-pelykh merged commit 1e1c3fb into main Apr 8, 2026
9 checks passed
@alexey-pelykh alexey-pelykh deleted the gut/session-remove-model-cost-calculation branch April 8, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gut(session): remove vestigial model cost calculation

1 participant