mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-19 10:36:17 +03:00
fix(webui): preserve range selection and turn timing
This commit is contained in:
@@ -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