Skip to content

Show per-message timestamps in chat#214

Open
leonidasbarkas98-cpu wants to merge 1 commit into
andrepimenta:mainfrom
leonidasbarkas98-cpu:feat/message-timestamps
Open

Show per-message timestamps in chat#214
leonidasbarkas98-cpu wants to merge 1 commit into
andrepimenta:mainfrom
leonidasbarkas98-cpu:feat/message-timestamps

Conversation

@leonidasbarkas98-cpu

Copy link
Copy Markdown

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 --noEmit clean, no new dependencies.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant