fix: harden cross-platform runtime reliability 2 months ago
Authored
Max Weinbach 7/13/2026, 2:26:36 PM Close Windows path and filesystem race gaps across canvas saves, previews, LM Studio, desktop media, imports, and private persistence.
Serialize shared skill bootstrap state, bound observability startup, and make platform scans and test inputs deterministic across hosts.
Tests: bun test --max-concurrency 1; bun run typecheck; bun run docs:check; bun run lint Parenteeb2e6c
27 files changed
apps/desktop/electron/services/appearancePreferences.ts +14 −10 apps/desktop/electron/services/mediaProtocol.ts +45 −10 apps/desktop/test/appearance-preferences.test.ts +30 −6 apps/desktop/test/chat-feed-scroller.test.tsx +7 −1 apps/desktop/test/markdown-media.test.ts +81 −30 apps/desktop/test/workspace-directory-watcher.test.ts +1 −1 src/import/conversations/adapters/claudeCode.ts +61 −4 src/observability/runtime.ts +135 −38
src/platform/fs.ts +27 −0
src/platform/pathString.ts +38 −0
src/platform/paths.ts +3 −2
src/providers/lmstudio/local.ts +12 −7
src/server/canvasDocumentPersistence.ts +163 −11
src/server/transcriptInbox.ts +18 −9
src/skills/defaultGlobalSkills.ts +43 −3
src/utils/filePreviewRead.ts +53 −45
test/canvasDocumentPersistence.test.ts +46 −0
test/default-global-skills.test.ts +19 −9
test/import-conversations.test.ts +73 −0
test/observability.runtime.test.ts +113 −0
test/package-manifest.test.ts +6 −1
test/platform-boundary.test.ts +40 −8
test/platform/fs.test.ts +29 −0
test/platform/pathString.test.ts +30 −0
test/platform/paths.test.ts +2 −0
test/providers/lmstudio-local.test.ts +2 −2
test/webDesktopRoutes.test.ts +9 −3