mirror of
https://github.com/lWolvesl/claw-code.git
synced 2026-04-02 07:41:52 +08:00
Reformat /cost for both live and resumed sessions so token accounting is presented in the same sectioned operator-console style as status, model, permissions, and config. This improves consistency across the command surface while preserving the same underlying usage metrics. Constraint: Cost output must continue to reflect cumulative tracked usage only, without claiming real billing or currency totals Rejected: Add dollar estimates | there is no authoritative pricing source wired into this CLI surface Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep /cost focused on raw token accounting until pricing metadata exists in the runtime layer Tested: cargo fmt --manifest-path ./rust/Cargo.toml --all; cargo clippy --manifest-path ./rust/Cargo.toml --workspace --all-targets -- -D warnings; cargo test --manifest-path ./rust/Cargo.toml --workspace Not-tested: Manual terminal UX review for very large cumulative token counts