An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Preserve normalized sidebar expectations at startup https://github.com/siyuan-note/siyuan/issues/20287
Danielfdd92d03591f
diff --git a/app/src/protyle/util/storageStartup.test.ts b/app/src/protyle/util/storageStartup.test.tsindex a3dd64a0db..63b7837eef 100644--- a/app/src/protyle/util/storageStartup.test.ts+++ b/app/src/protyle/util/storageStartup.test.ts@@ -79,10 +79,11 @@ test("startup preserves legacy and explicit sidebar choices in object and serial}});-test("malformed legacy mobile preferences retain safe swipe access", () => {+test("malformed legacy mobile preferences retain safe sidebar access", () => {for (const value of [null, "null", "invalid", "false", "{}", "[]"]) {const loaded = loadStorage({[MOBILE_BARS_CONFIG_KEY]: value})[MOBILE_BARS_CONFIG_KEY];- assert.deepEqual(resolveMobileSidebarConfig(loaded as Parameters<typeof resolveMobileSidebarConfig>[0]), {sidebarSwipe: true, sidebarButtons: false});+ assert.deepEqual(resolveMobileSidebarConfig(loaded as Parameters<typeof resolveMobileSidebarConfig>[0]),+ {sidebarSwipe: true, sidebarButtons: value === null}, String(value));}});