Show persistent timestamps for operation and teacher messages

This commit is contained in:
鲨鱼辣椒 committed 2026-09-29 18:02:54 +08:00
1 parent 3a175101c9
commit ead3407890
24 files changed
+355 -9

No files matched your search

@@ -1,3 +1,4 @@
import { messageTimestamp } from '../../../shared/message-timestamp';
import type {
ConversationContentBlock,
ConversationMessageNode,
@@ -529,6 +530,7 @@ export class PiEventProjector {
? { clientRequestId: optimistic.clientRequestId }
: {}),
role: 'user',
timestamp: messageTimestamp(message.timestamp) ?? optimistic?.timestamp ?? this.now(),
status: 'complete',
blocks: await liveContentBlocks(
id,
@@ -723,6 +725,8 @@ export class PiEventProjector {
kind: 'message',
id,
role: 'assistant',
// Live observation; settlement hydration replaces it with Pi's durable entry time.
timestamp: this.now(),
status: message.stopReason === 'aborted'
? 'aborted'
: message.stopReason === 'error' ? 'error' : 'complete',