[BUG] VSCode extension: Conversation history timestamps reset to restart time, breaking chronological order
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?
Description
When VSCode is restarted, the local conversation history list loses its original chronological (time-ascending) order. Conversations appear to be re-timestamped with the VSCode restart time instead of retaining their original creation/last-active timestamps.
This means after a restart, all past conversations show the same (restart) timestamp, making it impossible to find conversations by when they actually occurred.
Steps to Reproduce
- Open Claude Code in VSCode and have multiple conversations over time
- Observe that conversation history is correctly sorted by time (oldest first / newest first)
- Quit and restart VSCode
- Open the conversation history panel
- Notice that conversations now all share the restart timestamp, and the original chronological order is lost
Expected Behavior
Conversation history should retain its original timestamps across VSCode restarts and maintain correct chronological sorting.
Actual Behavior
All conversation timestamps are overwritten with the VSCode restart time, destroying the chronological order.
Environment
- OS: macOS 26.3 (25D125), Apple Silicon
- Claude Code: VSCode extension (latest)
What Should Happen?
Conversation history should retain its original creation/last-active timestamps across VSCode restarts and maintain correct chronological sorting order.
Error Messages/Logs
Steps to Reproduce
- Open VSCode with Claude Code extension
- Have multiple conversations over several hours/days (so they have distinct timestamps)
- Confirm conversation history is sorted chronologically in the sidebar
- Quit VSCode completely (Cmd+Q)
- Relaunch VSCode
- Open the conversation history — timestamps are now all reset to the restart time, chronological order is lost
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.81
Platform
Other
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗