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:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user