[BUG] Thought/Thinking for counter is broken
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?
When we try to use thinking mode with any provider including claude, the thinking for / thought for counter seems to be buggy. It does not reflect the true time it is taking for thinking or it took for the thinking. Instead, everytime you toggle the visibility of the thinking, the counter increments - and this happens across all previous thoughts of the model in current conversation (time in each of the previous thoughts also keeps incrementing everytime you toggle thinking visibility)
What Should Happen?
Thinking for should increment in real time.
Thought for should show true time consumed / spent in thinking mode for a particular tool_call or query.
Error Messages/Logs
Steps to Reproduce
- Open a new Claude Code session on VSCode
- Enable thinking mode
- Send a prompt involving some reasoning effort - observe the thinking dropdown.
- Toggle the visibility of the thinking process (you will notice that the time for thought keeps incrementing only when you toggle the visibility but it affects all previous thoughts as well)
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.96
Platform
Other
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
https://github.com/user-attachments/assets/73ac0b32-a430-438f-b08c-ad76bcce7ab8
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗