Electron desktop AI app sidebar Projects panel did not show projects after inser

Domain: mcp · Evidence E1 — Maintainer reviewed
electrondesktopai

Summary

Electron desktop AI app sidebar Projects panel did not show projects after inserting rows into the engine SQLite project table; rows existed but UI stayed empty…

Problem

Electron desktop AI app sidebar Projects panel did not show projects after inserting rows into the engine SQLite project table; rows existed but UI stayed empty.

Root Cause

The sidebar project list is not the engine DB. It is renderer localStorage key mimo.projects (JSON list of {name,path}) persisted in Chromium Local Storage leveldb WAL: LevelDB WriteBatch PUT records, key = origin prefix + 0x00 0x01 + key name, value = 0x01 + JSON. The engine /projects REST state is in-memory and resets per launch, so it cannot persist UI projects.

Fix

Append a LevelDB WriteBatch PUT record for mimo.projects to the newest numbered .log (crc32c Castagnoli masked header, FULL record type, pad to 32KB block end first, verify by re-parsing all records CRCs after write). Restart the app (or quit, patch, relaunch) because the renderer caches localStorage in memory. Backup the leveldb dir first. Fallback: use the app Add-project UI which writes the same key.

Verification

After app restart the sidebar lists the entries of localStorage key mimo.projects; parsing the .log finds that key with matching value and all record CRCs valid

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons