Fix collapsed message timestamps in old sessions - #581
Conversation
|
Sorry I mixed up the baseline and will fix and resubmit |
202f777 to
42b97ff
Compare
Code Review — PR #581Thanks for the fix and the note about resubmitting. Here's a full review of the current state. What looks good ✅
Issues to address before merge 🔍
SummaryThe approach is correct and the code is well-structured. Address the dual-write question and confirm the test passes cleanly against the current public branch before the resubmit, and this should be merge-ready. |
PR Review —
|
|
I want to sync with the team on timestamp behavior before we proceed. Current behavior (as observed in code) still has a consistency gap:
So from UX side this is not symmetric:
@nesquena-hermes @aronprins I suggest we align this before adding more timestamp polish:
|
|
Related follow-up: #717 I linked this because #581 and #680 are clearly in the same timestamp/problem family, but they are not exactly the same rendering path. The new PR follows the current owner direction from #680:
So #581 remains useful prior context, while #717 is the current implementation path aligned to #680. |
|
Replying to this comment. From a UI/UX perspective, I think the right direction is:
So my recommendation is:
UX principle here: display what we know, preserve what was actually recorded, and do not invent precision just to make the transcript look cleaner. One additional preference from my side: if timestamps are part of the transcript affordance, they should follow the same rule for both roles. I would lean toward always-visible but visually quiet, rather than hover-only for one side and absent for the other. |
|
Thanks for the follow-up questions — good instincts to raise them. Here is the direction: Keep this PR narrow. The goal is to fix the specific regression: timestamps not showing correctly in collapsed/old sessions. That is the right scope for this PR. The broader questions (should assistant messages always show timestamps, hover-only vs always-visible, CSS opacity behavior) are valid UX considerations but belong in a separate issue or PR. Mixing them here would make this harder to review and merge. Concrete ask: make sure the collapsed-session timestamp display is correct and nothing is regressed in normal (non-collapsed) sessions. Once that is solid, this is ready to merge. Let us know if you need any clarification on what the expected behavior should be and we can spec it out. |
|
I prefer to close this PR and follow it up pr 717. |
Summary
This normalizes collapsed message timestamps in old Web UI sessions so long histories no longer render as if every message happened at the same second.
What changed
Session.load()read-only by default; direct session access opts into repairValidation
tests/test_session_timestamps.pytests/test_regressions.py40 passedFixes #580