[BUG] /cost command doesn't show API costs for continued sessions
Resolved 💬 2 comments Opened Oct 28, 2025 by carylewis Closed Oct 28, 2025
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
- The /cost command shows costs from the original session but doesn't update when a session is continued after hitting context limits
- Expected: Cumulative costs including the continuation session
- Actual: Only shows costs from before the session was summarized and continued
- Example: Shows 632 input / 39.1k output when actual usage in continuation is ~43k tokens
In fact, in my terminal session /cost didn't output anything - it wasn't until I asked the model why it was blank that I was able to file this bug.
What Should Happen?
Clause should accurately report api costs regardless of how they started being used.
Error Messages/Logs
Steps to Reproduce
a. Start a long session that hits context limits
b. Continue the session from the summary
c. Run /cost command
d. Observe it shows old costs, not current session costs
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.28 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
My pro account limit was reached after only about an hour's worth of use this morning, very disappointing.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗