feat(runtime): add user-controlled turn recovery

This commit is contained in:
Xubin Ren committed 2026-08-24 00:58:04 +08:00
1 parent ffa58aa5ef
commit 12029f8812
60 files changed
+4027 -169

No files matched your search

+3
View File
@@ -7,6 +7,7 @@ export interface LocalPreferences {
activityMode: LocalActivityMode;
codeWrap: boolean;
brandLogos: boolean;
browserNotifications: boolean;
fileEditDisplayMode: FileEditDisplayMode;
}
@@ -18,6 +19,7 @@ export const DEFAULT_LOCAL_PREFS: LocalPreferences = {
activityMode: "auto",
codeWrap: true,
brandLogos: false,
browserNotifications: false,
fileEditDisplayMode: "summary",
};
@@ -35,6 +37,7 @@ export function readLocalPreferences(): LocalPreferences {
activityMode: parsed.activityMode === "expanded" ? "expanded" : "auto",
codeWrap: parsed.codeWrap !== false,
brandLogos: parsed.brandLogos === true,
browserNotifications: parsed.browserNotifications === true,
fileEditDisplayMode: normalizeFileEditDisplayMode(parsed.fileEditDisplayMode),
};
} catch {