fix(session): prevent consumed follow-ups from replaying after restart (#6299)

* fix(session): atomically acknowledge consumed follow-ups

* refactor(webui): drop legacy follow-up replay compatibility
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-19 11:31:19 +08:00
1 parent 743d40bbba
commit 53e0edf709
17 files changed
+645 -215

No files matched your search

+2 -2
View File
@@ -2,9 +2,9 @@ import i18n from "i18next";
import { normalizeLocale } from "@/i18n/config";
/** Loose ISO-or-epoch parser; returns ``null`` for missing/invalid input. */
/** Loose ISO-or-epoch parser; zero denotes an unknown persisted message time. */
function parseDate(value: string | number | null | undefined): Date | null {
if (value === null || value === undefined || value === "") return null;
if (value === null || value === undefined || value === "" || value === 0) return null;
const d = new Date(value);
return Number.isNaN(d.getTime()) ? null : d;
}