refactor(ui): rename message time.completed to time.end

Update all references from info.time.completed to info.time.end to align
with SDK schema changes. Affects message status tracking and rendering.
This commit is contained in:
Shantur Rathore
2026-02-15 20:38:57 +00:00
parent 5067db3dd0
commit 9a4d205d97
3 changed files with 10 additions and 9 deletions

View File

@@ -151,7 +151,8 @@ export default function MessageItem(props: MessageItemProps) {
}
const info = props.messageInfo
return Boolean(info && info.role === "assistant" && info.time.completed !== undefined && info.time.completed === 0)
const timeInfo = info?.time as { created: number; end?: number } | undefined
return Boolean(info && info.role === "assistant" && (timeInfo?.end === undefined || timeInfo?.end === 0))
}
const handleRevert = () => {