fix(ui-trajectory): simplify terminal contribution branch
This commit is contained in:
@@ -230,13 +230,11 @@ export class TrajectorySnapshotBuilder implements ConversationViewBuilder<
|
|||||||
boundaries.push({ seq: data.seq, time: data.time })
|
boundaries.push({ seq: data.seq, time: data.time })
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if (data.kind === 'turn-end') {
|
turnEndings.push({
|
||||||
turnEndings.push({
|
turn: data.turn,
|
||||||
turn: data.turn,
|
time: data.time,
|
||||||
time: data.time,
|
...(data.error === undefined ? {} : { error: data.error }),
|
||||||
...(data.error === undefined ? {} : { error: data.error }),
|
})
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
requests.sort((left, right) => left.startSeq - right.startSeq)
|
requests.sort((left, right) => left.startSeq - right.startSeq)
|
||||||
|
|||||||
Reference in New Issue
Block a user