[BUG] Cost summary no longer displayed when exiting Claude Code session
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?
Cost summary no longer displayed when exiting Claude Code session
Description
The automatic cost summary that previously appeared when quitting/exiting a Claude Code session is no longer
being displayed.
Expected Behavior
When exiting a Claude Code session, a cost summary should be automatically displayed showing:
- Total cost
- Total duration (API)
- Total duration (wall)
- Total code changes
- Usage by model
Current Behavior
When exiting a Claude Code session, no cost information is displayed automatically.
Workaround
The /cost command still works correctly during the session and displays all expected information:
Total cost: $0.0411
Total duration (API): 30.7s
Total duration (wall): 1m 4s
Total code changes: 0 lines added, 0 lines removed
Usage by model:
claude-3-5-haiku: 10.5k input, 411 output, 0 cache read, 0 cache write ($0.0100)
claude-sonnet: 13 input, 483 output, 40.0k cache read, 3.1k cache write ($0.0310)
Environment
- Platform: Linux
- OS Version: Linux 6.14.0-33-generic
Impact
This makes it harder to track session costs without manually running /cost before each exit.
What Should Happen?
Please restore the automatic cost summary display on session exit, or provide a configuration option to enable
it.
Error Messages/Logs
Steps to Reproduce
- Run claude from command line
- Run a couple of queries inside claude
- Quite claude with Ctrl-D
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.14
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗