Show per-message timestamps in chat#214
Open
leonidasbarkas98-cpu wants to merge 1 commit into
Open
Conversation
Every user and claude message now carries a timestamp: _sendAndSaveMessage computes it once and both posts it to the webview and persists it in the conversation history (previously two independent toISOString calls and the value never reached the UI). _loadConversationHistory forwards the stored timestamp when replaying a conversation, so existing histories show times retroactively (andrepimenta#189). The webview renders a small HH:MM stamp between the message label and the copy button (full date incl. seconds as hover title), user/claude bubbles only. Messages without a stored timestamp (foreign/old files) simply render without a stamp. Styling uses the neutral descriptionForeground token. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every user and claude message now carries a timestamp (#189): it is computed once per message, posted to the webview and persisted in the conversation history; replaying a conversation forwards the stored value, so existing histories show times retroactively.
The webview renders a small HH:MM stamp between the message label and the copy button (full date incl. seconds as hover title), user/claude bubbles only. Messages without a stored timestamp (old files) simply render without a stamp. Styling uses the neutral descriptionForeground token.
Addresses #189. Based on current main (ab6e307),
tsc --noEmitclean, no new dependencies.