fix(webui): preserve range selection and turn timing
This commit is contained in:
@@ -260,6 +260,9 @@ function reasoningOnlyMessageFromAnswer(message: UIMessage): UIMessage {
|
||||
isStreaming: message.reasoningStreaming,
|
||||
activitySegmentId: message.activitySegmentId,
|
||||
latencyMs: message.latencyMs,
|
||||
turnId: message.turnId,
|
||||
turnPhase: "reasoning",
|
||||
turnSeq: message.turnSeq,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -308,6 +308,11 @@ export class NanobotClient {
|
||||
return v === undefined ? null : v;
|
||||
}
|
||||
|
||||
/** Canonical lifecycle turn currently owning the run for *chatId*, if known. */
|
||||
getRunTurnId(chatId: string): string | null {
|
||||
return this.latestRunTurnIdByChatId.get(chatId) ?? null;
|
||||
}
|
||||
|
||||
/** Clear the optimistic run state immediately after the user stops a turn. */
|
||||
finishRunLocally(chatId: string): void {
|
||||
const unsettled = [...(this.unsettledRunTurnIdsByChatId.get(chatId) ?? [])];
|
||||
|
||||
Reference in New Issue
Block a user