Show discreet local timestamps on chat messages

This commit is contained in:
2026-11-05 22:00:13 +00:00
parent 5b0c46b27a
commit 9180e84109
8 changed files with 311 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
# Chat message timestamps
User messages and folded assistant replies show a small local date and time using recorded epoch-millisecond `created_at` values. Missing, invalid and out-of-range values stay absent. Folded replies use the first valid creation time, not render time. Native localization and secondary theme colors supply the presentation; full dates are exposed through tooltip and accessibility semantics. Material and Cupertino hosts are supported.
Timestamp metadata is inside `SelectionContainer.disabled`, so cross-message drag selection and the reply Copy action exclude it. Existing delivery/model/copy controls remain.
Manager recovered the incomplete Mobile v15 run 254 directly after detecting an ISO-string assumption that contradicted `protocol.ChatMessage.CreatedAt`. The run was canceled and awaited before editing; its worktree and changes were preserved. No workflow definitions changed.
Checks: bounded analysis clean; 586 transcript/conversation tests passed through the memory watchdog (peak 1955 MB, 43s). 63 domain tests also passed (peak 954 MB, 4s). After strengthening local-format assertions, 25 focused message/selection tests passed (peak 1028 MB, 5s). Tests cover actual protocol values, invalid/missing values, folded replies and streaming, local formatting, Cupertino 2x text, copy buttons and forward/backward selection exclusion.
Real Chrome full-app fixture screenshots inspected: `/private/tmp/timestamps-wide-final/01-timestamp.png` (1100x1000 light), `/private/tmp/timestamps-narrow-final/01-timestamp.png` (560x1000 dark), and `/private/tmp/timestamps-cupertino-final/01-timestamp.png` (560x1000 Cupertino light). Fixture uses opt-in `timestamps=1`; no production sessions touched. Capture tools exited normally. No physical device or Safari verification.