feat(chat): show timestamps on chat message bubbles - #4372
Open
terrytangyuan wants to merge 4 commits into
Open
Conversation
terrytangyuan
force-pushed
the
feat/chat-message-timestamps
branch
2 times, most recently
from
August 7, 2026 19:18
0f4f634 to
01a1af9
Compare
terrytangyuan
marked this pull request as draft
August 7, 2026 19:24
terrytangyuan
force-pushed
the
feat/chat-message-timestamps
branch
2 times, most recently
from
August 7, 2026 19:29
87d116d to
7334094
Compare
Surface the persisted `created_at` timestamp through the API and render it beneath each user and assistant message bubble. Today's messages show time only; older messages include the date. Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
terrytangyuan
force-pushed
the
feat/chat-message-timestamps
branch
from
August 7, 2026 19:35
7334094 to
85745a6
Compare
Wrap the user bubble content row and timestamp/actions row in a shared flex-col container with w-fit + items-end so the timestamp right-aligns with the bubble's actual width instead of spanning the full Message container. Also tighten vertical gap from mt-1 to mt-0.5 for both user and assistant timestamps. Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
terrytangyuan
marked this pull request as ready for review
August 7, 2026 19:41
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
The timestamp/actions div was always rendered, adding an empty child to fold-only bubbles and breaking the test that asserts a single child for collapsed turns. Signed-off-by: Yuan Tang <terrytangyuan@gmail.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.
Related issue
N/A
Summary
created_atfield (already stored on everyConversationItem) through the API by including it into_api_dict().BaseItem→BlockContext→Bubbletypes.Test Plan
renderItems(84 tests) anditemsToBlocksall pass unchanged.to_api_dict(56 tests) all pass.tsc --noEmit).Demo
Type of change
Test coverage
Coverage notes
All existing unit tests pass without modification. Manual verification confirms timestamps render correctly on both user and assistant bubbles for today's messages (time only) and historical messages (date + time).
Changelog
Chat messages now show a timestamp beneath each bubble