Skip to content

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

@alexey-pelykh

Description

@alexey-pelykh

Summary

Model cost calculation (resolveModelCostConfig, resolveModelAuthMode, response usage cost display) is dead code in RemoteClaw. CLI runtimes manage their own API keys and billing — RemoteClaw doesn't have per-token cost tracking.

What to Remove

  • resolveModelCostConfig() calls in agent-runner.ts
  • resolveModelAuthMode() calls
  • Response usage cost display logic (showCost conditional)
  • Cost-related fields in session entries if any

Acceptance Criteria

  • Given a message is processed
    When usage is reported
    Then no cost calculation or display logic runs

  • pnpm check passes

  • Existing tests pass

Depends On

Metadata

Metadata

Assignees

No one assigned

    Labels

    gutRemoving dead upstream subsystems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions