Skip to content

1.7.9: Speed and reliability improvements across desktop, MCP, and CLI - #74

Open
cdevroe wants to merge 1 commit into
mainfrom
beta/1.7.9
Open

cdevroe wants to merge 1 commit into
mainfrom
beta/1.7.9

Conversation

@cdevroe

@cdevroe cdevroe commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Summary

Maintenance release 1.7.9 focused on speed and cross-platform reliability across the desktop app (macOS, Windows, Linux), shared storage layer, MCP server, CLI/installer, and importers.

Shared Storage & Cross-Platform Safety

  • Dot-entry protection: Exclude hidden directories and files (.git, .obsidian, macOS ._*.md) from board snapshots, list/card ordering, directory renames, and watchers (lib/boardSnapshot.js, lib/cardOrdering.js, lib/directoryRename.js, lib/archive.js, main.js).
  • BOM & parse-error protection: Strip UTF-8 BOMs, support empty ---\n--- frontmatter, and prevent board-settings.md / app-settings.json / card frontmatter from being silently overwritten on YAML/JSON parse errors (lib/boardLabels.js, lib/appSettings.js, lib/cardFrontmatter.js).
  • Cross-process locking & Windows retries: Fix stale .reap lock recovery and error cleanup in lib/fileTransaction.js and wire it into card frontmatter, board settings, app settings, archive, CLI, and MCP read-modify-write paths. Add bounded Windows EPERM/EACCES/EBUSY retries to lib/atomicFile.js, lib/directoryRename.js, lib/cardOrdering.js, and lib/listOrderRecovery.js:finish(), skip failing dir-fsync/chmod on win32, and make chmod best-effort on non-POSIX mounts.
  • Ordering, timestamps, archive & duplication fixes:
    • Delegate insertCardFileAtTop to reorderEntriesInDirectory so unchanged existing prefixes (001, 002, …) are not unnecessarily renamed twice and rollback uses safe two-phase restoration.
    • Bound concurrency via lib/fileReadQueue.js (O(1) queue dequeue) in reorderCardFilesInListByDueDate, listArchiveEntries, readArchiveEntry, discoverBoards, and refreshCopiedCardMetadata.
    • Reject epoch-zero Date(0) birthtimes in lib/cardTimestamps.js and lib/importers/tasksmd.js (fixes 1970-01-01 created dates on Linux filesystems without birth time).
    • Fix lib/archive.js collision-loop edge case, .DS_Store/Thumbs.db ENOTEMPTY post-restore cleanup, single-segment --as validation, and duplicate card reads in readArchiveEntry.
    • Preserve card body leading/trailing whitespace and exclude lock/recovery/temp files (with failure cleanup) in lib/boardDuplication.js.
    • Standardize isPathInside checks so valid ..-prefixed filenames are not rejected.

Desktop App (Main Process & Renderer)

  • Eliminate per-card IPC for date formatting: Format short due dates locally in preload.js with a bounded cache instead of invoking an IPC round-trip per card date.
  • Faster Windows & Linux dropdowns: Gate the 250ms AppKit menu-tracking settle delay in app/utilities/accessibility.js to macOS only.
  • Faster startup & rendering: Skip migrateAppSettingsFromBoard loops once migrated (app/appSettings.js); batch dueNotifications via readBoardSnapshot with an in-flight guard (app/utilities/dueNotifications.js, app/init.js); fold boardSettings into renderBoard()'s snapshot and skip hidden Settings panel rebuilds when Settings is closed (app/board/renderBoard.js, app/board/boardLabels.js); resolve tooltips lazily without a global document.body MutationObserver (app/ui/tooltips.js); eliminate Archive Browser double-renders and 7× sorts (app/board/archiveBrowser.js); pause external-sync polling while hidden (app/init.js).
  • Windows board moves & async Arch Linux updates: Stop the active board watcher before renaming activeBoardRoot so Windows recursive watch handles do not block board rename/move (main.js). Run Arch/Omarchy pkexec pacman -U asynchronously via installPacmanPackageAsync so the Electron main thread does not freeze (lib/linuxPackageInstaller.js, main.js).
  • Obsidian, watchers, External Published Calendar & deep links: Diff serialized card bytes before writing in refreshCardSignboardMetadata, stop running Obsidian Base sync on every per-card save and redundant full-board rewrites on duplication/board move, cache/coalesce External Published Calendar feeds with instant mutation invalidation + closeAllConnections() shutdown + UTF-8 byte-safe ICS folding, run filename-first deep-link scans across all trusted boards, bound favicon HTML fetches to 64 KB, guard watcher leaks/dead-watcher recovery, and cap rapid render-process-gone crash loops.
  • Editor & Planner reliability: Fix refreshActiveCardEditorFromDiskIfClean keystroke clobber across async metadata IPCs, add open request-ID staleness guards and input title saving in toggleEditCardModal.js, flush before duplicating and preserve Planner foreign-card context across Duplicate, defer Planner Sortable instantiation until after staleness checks, clear stuck Planner restore state on failure, normalize Windows drive-letter casing in normalizeBoardPath, fix UNC/#/? favicon URLs, and fix #cardEditorCardDatesDisplay reset and <applet> typo in index.html.

MCP Server

  • Framing & lifecycle: Fix split-chunk Content-Length/Content-Type header framing, earliest header boundary detection, strict decimal length parsing, -32700 parse errors, -32602 invalid-params errors, chunked input buffering with size caps, stdin EOF response draining before exit, and stdout/stderr EPIPE handling (lib/mcpServer.js).
  • Speed & discovery: Pre-resolve canonical allowedRoots once per call, eliminate per-card/per-list resolveBoardRoot loops, and scope assertAllowedTree to affected subtrees (lib/allowedPaths.js, lib/mcpServer.js). Catch EACCES/EPERM (e.g., Windows junction points) in lib/boardDiscovery.js, eliminate double readdir scans, add a visited-directory cap, refresh desktop trusted/open boards on file change (bin/signboard-mcp.js), and stop normalizeCardBodyInput from mangling Windows paths.

CLI, Installer & Importers

  • CLI speed & correctness: Fast-path exact filename and 5-char card ID lookups in cliBoard.resolveCard() without reading unrelated cards; lazy-load heavy subcommands and importers in lib/cliApp.js; default resolveList to withCardCounts: false; precompute sort keys in listCards(); fix parseArgv boolean flags swallowing positionals; fix cards create --from-card without --title; populate labelNames on real write responses; collapse editCard --move-to into a single atomic card write; and emit a direct exec CLI shim on Linux without spawning mktemp/grep/rm (lib/cliInstall.js).
  • Importers: Strip %% kanban:settings ... %% blocks in Obsidian Kanban imports, hoist O(N²) tasks.some(...) out of the task loop, fix CardBoard null→0 coercion and ✓/✔ checkboxes, allow repeatable --source on import tasksmd, and handle unreadable subdirectories gracefully (lib/importers/*).

Validation

  • Added scripts/test-speed-reliability.js (npm run test:speed-reliability) and wired it into .github/workflows/maintenance-tests.yml for Linux and Windows CI.
  • Ran all 40 Node test suites locally (test:maintenance, test:speed-reliability, test:mcp, test:cli, test:cli-install, test:desktop-cli, test:automation-parity, test:archive, test:card-ordering, test:list-actions, test:editor-paths, test:board-refresh, test:app-settings, test:board-labels, test:board-snapshot, test:board-duplication, test:board-views, test:due-notifications, test:external-calendar, test:linux-package-installer, test:obsidian-integration, importers, etc.) — 40/40 passed.
  • Ran the full Electron Playwright suite (npm run test:playwright) in an isolated Linux Xvfb desktop — 110/110 passed (107 passed on initial run + 3 fixed & verified passing after addressing External Calendar cache invalidation on board settings update and did-finish-load protocol dispatch timing).
  • Stamped release build identity (1.7.9 · release build 20261203.1) and verified npm run build:check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant