Changelog
[Unreleased]
Added
- Saved searches can be recalled from a local dialog (command palette or the
⊙ button), applied in one click, or deleted. Entries remain in browser localStorage; nothing leaves the machine.
- Trash now has per-item Delete and bulk Delete selected actions through the additive
POST /api/trash/delete route. Only the named items are removed; the rest of the trash is untouched.
- The activity rail can be expanded to show text labels via the
» button, Ctrl+Shift+M, or the command palette; the choice is remembered in browser localStorage. The note list now keeps a reserved, visible scrollbar, scrolls the open note into view, and supports Arrow/Home/End navigation. Keyboard focus is more visible throughout.
- Folder tree rows support Arrow/Home/End navigation and show a clear active state. The knowledge graph is keyboard accessible: focus it, move between nodes with arrows, open with Enter, zoom with
+ / -, reset with 0, and hear the selected node through a live announcement.
- An optional read-only companion PWA for phones at
/companion. Start with python app.py --lan to expose it on the local network; other devices can browse/search/read notes but every state-changing request is rejected, while this machine keeps full access. The LAN address is published as lan_url in data/server.json and /api/health, and is opt-in (default stays localhost-only).
- Optional local semantic search via Ollama, off by default. Four palette commands enable it, build a local embedding cache, run a ranked “semantic search…”, and show status. Note text is only sent to a validated loopback URL (
http://127.0.0.1:11434 by default); redirects and remote endpoints are refused, and the cache stays in local data/semantic.json.
- Voice notes via Record voice note… in the palette. Browser
MediaRecorder captures audio locally, uploads it through the existing attachment route into vault/Attachments/, and creates an Inbox note with a playable link and an editable ## Transcript section. No speech-to-text service is contacted.
- Transcribe voice note locally… fills the
## Transcript section from an already-installed Whisper CLI. The additive POST /api/voice/transcribe route accepts only a vault-local audio path plus the editor’s stale-save guard; no command, URL, or model comes from the browser. PN_VOICE_MODEL must point to an existing local model file, so no model is downloaded and no data leaves the machine.
Changed
- Replaced every launcher/stop/capture/protocol script with two entry points:
start.bat and start.sh. Both hide the server in the background by default and expose status, stop, console, browser, window, capture, register, and unregister commands.
- The server now prefers port
8765 but automatically selects a free localhost port when another app is using it. The active URL is written to data/server.json and used by capture, status, open, and stop; start.bat and start.sh no longer contain a hard-coded port.
/api/health now includes the app identity and live url/port so launchers only attach to a real PeaNote instance.
- Fixed
start.sh so its shebang is the first line and made it executable; double-clicking start.bat now reports the live URL or a clear startup error instead of appearing to do nothing.
- All task endpoints now share one canonical parser:
core.tasks parses lines and services.task_repository supplies indexed notes. /api/task/toggle validates through parse_task_line and preserves uppercase checkbox marks. TaskRepository.filter compares done by truthiness and tolerates empty row sets. Response shapes are unchanged.
- Long note lists and folder trees now use browser-native rendering virtualization (
content-visibility with reserved intrinsic sizes), so scrolling stays smooth without changing markup or data loading.
app.py now dispatches through runtime GET/POST/PUT/DELETE tables with named handlers instead of long exact-path if chains. Routes, response shapes, guards, query-string behavior, and status codes are unchanged; api/routes.py remains the contract source of truth.
Verification
- 110/110 unit tests and 132/132 live E2E checks pass. A pre/post differential smoke check also compared 57 read-only routes and 10 dispatch edge cases with no differences.
[3.11.0] - 2026-11-30 (“Reload and relaunch”)
Added
- Reload note from disk in the command palette replaces the editor with the current file after confirmation; useful when a sync tool changed an open note.
OPEN_PEANOTE.bat checks /api/health first, so repeated double-clicks no longer start a second server that cannot bind the port.
Verification
- 79/79 unit tests and 114/114 live E2E checks pass.
[3.10.0] - 2026-11-30 (“Conflict compare”)
Added
- A stale save now opens a local dialog showing your text beside the disk text. Choose Keep my version or Use disk version; cancelling leaves the editor dirty. The disk version is still snapshotted into History first.
Verification
- 79/79 unit tests and 114/114 live E2E checks pass.
[3.9.0] - 2026-11-30 (“Visible sync safety”)
Added
- Four editable sample notes under
vault/Samples/ on new vaults; python app.py --samples adds missing ones to an existing vault without overwriting edits.
- Windows
OPEN_PEANOTE.bat now starts the server with pythonw.exe, so no console window stays open. SET_LAUNCH_MODE.bat remembers browser vs desktop window, and STOP_PEANOTE.bat ends the background server through POST /api/shutdown.
- Hidden-launch diagnostics are written to
data/server.log.
- Opening a note changed by a sync tool shows a local notice with its History link; saving or dismissing acknowledges it for the session.
Verification
- 79/79 unit tests and 114/114 live E2E checks pass.
[3.8.0] - 2026-11-30 (“Sync guard hardening”)
Added
POST /api/task/toggle accepts optional expected_updated / expected_sha; a stale board toggle returns 409 with the current note instead of overwriting an external edit. Requests without the fields keep the existing behaviour.
GET /api/task-board includes updated and sha for each task card so the UI can send the guard values.
- Renaming a note snapshots every linked note before rewriting its
[[links]], keeping the change reversible from history.
Verification
- 78/78 unit tests and 114/114 live E2E checks pass; version drift, API docs, JS syntax, compile, and diff checks are clean.
[3.7.0] - 2026-11-30 (“Constellation follow-ups”)
Added
- PeaNote branding with
OPEN_PEANOTE.bat, CAPTURE_TO_PEANOTE.bat, and a peanote:// URL alias; legacy launchers, handlers, protocols, storage paths, and config keys still work.
- Capture from
pn:// / portable-notes:// / peanote:// links or plain text via python app.py --capture "…"; optional per-user Windows registration scripts live in scripts/.
Ctrl+Shift+V outside the editor creates a note from the clipboard; inside the editor it still cycles view mode. Paste an image into an open note to upload it to vault/Attachments/ with a vault-relative Markdown link.
- Local drop folder (
data/drop/, optionally drop_dir in config or PN_DROP_DIR) imports .eml / .txt / .md files into Inbox on demand via POST /api/inbox/scan; processed files move to .processed/.
- Import HTML, Evernote
.enex, Notion Markdown exports, and CSV notes entirely in the browser; POST /api/capture backs text captures.
- Export a note as standalone HTML, print/save as PDF with an improved print stylesheet, or download all notes as one Markdown file via
GET /api/export/markdown.
- Searchable keyboard-shortcut overlay (
?) listing every binding and command; also available from the command palette.
- Local-only first-run banner backed by
GET/POST /api/onboarding and data/onboarding.json. State records dismissal, shortcut visibility, and first-note time; nothing is sent off the machine.
- Background reindex (
POST /api/reindex, poll GET /api/reindex?job=…) and a non-blocking “Rebuild search index” command.
- Structured JSON request timings,
GET /api/diagnostics, and a local ?debug=1 diagnostics view.
- Server-side list paging (
limit / offset / preview) with “Load more”; capped folder tree and a graph node filter that keeps the most-linked notes.
python scripts/benchmark.py produces reproducible 1k / 10k / 50k timings in docs/BENCHMARKS.md.
- Editor-only undo/redo (
Ctrl+Z / Ctrl+Y / Ctrl+Shift+Z) with a 200-step local stack; native undo remains in every other input.
- Trash name search, four sort orders, checkbox bulk restore, and a local auto-empty/retention policy.
- History snapshot labels, aligned side-by-side diff, and “restore into new note” without touching the currently open note.
- Verified local ZIP backups with SHA-256 sidecars, count retention, optional scheduling, and
python app.py --backup.
- Read-only vault integrity report (broken links, missing attachments, case-insensitive duplicate paths, malformed front matter).
- Config/schema migration planning with dry-run default, backup-before-apply, token rollback, and
python app.py --migrate plan|apply / --rollback TOKEN. See docs/RECOVERY.md.
GET /api/routes typed route registry and generated docs/API_REFERENCE.md with request fields and curl examples; an “API reference (JSON)” command opens the registry from the palette.
- One runtime version in
core/version.py plus scripts/check_version.py; generated API docs are checked in CI.
Makefile targets (dev, test, e2e, lint, version, docs, contracts, check) and exact no-Make equivalents in CONTRIBUTING.md.
- Contract tests for registry completeness, live-path coverage, generated-doc freshness, and version consistency.
- Launch-mode choice on startup: browser tab or focused desktop app window, with an optional remembered preference in local
data/config.json.
- CLI flags
--launch browser|window, --ask-launch, --remember-launch, and one-shot --set-launch; OPEN_PEANOTE.bat now starts with the chooser.
- Desktop mode opens the existing localhost UI in an Edge/Chrome
--app window and falls back to the default browser when no Chromium browser is available.
- Bring-your-own-folder sync protection: external edits/removals are recorded in a local
.portable-notes/sync.json ledger and shown in the searchable “Sync status / conflicts” command and GET /api/sync.
- The exact previous disk text is snapshotted into normal history before the index is refreshed, so a sync-tool overwrite can be reviewed and restored locally.
- Stale saves are detected by the
updated stamp or a SHA-256 body fingerprint; a conflict dialog lets you keep your draft or load the newer disk version. Your draft remains in editor undo history.
Changed
- The app is now branded PeaNote (formerly Portable Notes). Notes, Markdown front matter, routes,
.portable-notes/ storage, and localhost behavior are unchanged.
api/__init__.py now exports the route registry; existing api/* modules stay thin reference adapters and no route or response shape is removed.
- Launch mode changes only how the local URL is opened; notes, routes, and UI features stay identical in both modes.
PUT /api/note accepts optional expected_updated / expected_sha fields; requests without them keep the existing behaviour, and a stale match returns 409 with the current note.
- The SQLite index now stores
disk_text in addition to the searchable body so external changes can be snapshotted exactly; older indexes backfill it from the vault on open.
PN_INDEX_DB can override the disposable index path; the E2E suite uses it so a temporary vault never prunes the real index or creates false sync events.
- Index rebuild uses one SQLite connection, clears FTS once instead of scanning it per note (quadratic → linear), and uses scandir-cached stats instead of per-file
stat().
- On vaults over 2,000 notes, the external-change refresh pass runs at most once per second; writes made through the app index immediately, so reads stay responsive.
- Trash listing is read-only; retention pruning runs only from guarded writes, and ZIP backups/exports skip symlinks.
Testing
- 78/78 unit tests and 114/114 live E2E checks pass.
[Unreleased]
[3.1.0] - 2026-11-10 (“Constellation”)
Added
- Board cards can now toggle a task done/not-done in place (
POST /api/task/toggle), with a snapshot taken before each toggle; completing a task moves the card between lanes instantly
.gitignore (Python caches, local index, editor folders); cached bytecode and the disposable data/index.db untracked from git
Fixed
- Task toggle hung the server: the handler read the request body twice (
read_body called after the handler had already consumed it) — requests blocked forever; also fixed board line numbers to index frontmatter-stripped body lines (was off by the frontmatter length) and to bump updated while preserving favorites/pins
front() coerced the string 'false' for favorite/pinned to True — any frontmatter rewrite flipped both flags on; now uses boolv()
- Opening/switching notes no longer silently rewrites the current note when it is clean (timestamp churn removed)
- Related-notes and backlinks network calls are now debounced (250 ms) instead of firing on every keystroke
- Knowledge graph no longer repaints on every window mouse move (repaints only while dragging or when hover changes)
tests/e2e_ui_actions.py no longer points the user’s real data/config.json at a temp vault — config is backed up and restored around the run
Audit revamp (2026-11-28)
- Canonical
core/vault.py now owns paths, front matter, indexing, and history; app.py imports it instead of maintaining divergent copies
- Fixed stale/history-polluted FTS rows, repository-wide static file disclosure, and missing origin/content-type checks on localhost mutations
- Fixed hidden slash menu click blocking, duplicate wikilink note creation, left-panel note opening, duplicated tree/list rows, and the always-visible delete button
- Added 47 unit tests and 98 live E2E checks with regression coverage for every item above; see
AUDIT_REPORT.md
Changed
- Version raised to 3.1.0 across backend, config, UI, package metadata, launcher and tests
- E2E suite validates
3.1.0; 98/98 checks pass (see UI_TEST_REPORT_v3.1.0.md)
Testing
- 47/47 unit tests pass
- 98/98 live UI/action E2E checks pass
[3.0.0] - 2026-11-10 (“Nebula”)
Added
- Multi-view workspace with activity-rail switching: Notes / Board / Graph / Tags / Trash (
Ctrl+Shift+1–5)
- Task board view: all checkbox tasks grouped Overdue / Today / Next 7 days / No date / Done, project filter, click-to-open
- Interactive knowledge graph (deterministic force-directed canvas, folder-colored, pan/zoom/drag, click node to open note)
- Tag cloud with counts and per-tag note listing
- Trash view with restore-to-Inbox and empty-trash (backend
/api/trash, /api/trash/restore, /api/trash/empty)
- Knowledge-graph endpoint
/api/graph; templates endpoint /api/templates
- Quick capture sidebar input (
Ctrl+Shift+N) — creates timestamped Inbox notes
- Slash block commands in the editor (
/ menu: heading, task, list, quote, code fence, table, date, wiki link, divider)
- Templates gallery (toolbar rail button + palette) with
/ substitution
- Import notes by dropping
.md/.markdown/.txt files anywhere onto the window
- Related notes panel (Evernote-style) from shared tags
- Focus mode (
Ctrl+\) for distraction-free writing; print stylesheet
- New “Nebula” 3.0 design tokens (light/dark), rebuilt rail/sidebar/board/graph/tags/trash styles
Fixed
- Frontend application logic was missing after a previous edit — full
static/app.js rebuilt with all 2.x features intact plus the new views
data/config.json pointed at a stale e2e temp vault — repointed at the real vault
- Orphan-attachment scan compared bare filenames to full reference paths — now URL-decodes and matches on relative path or basename, including regular markdown links
app.js graph rendering crashed on an unqualified variable — fixed and verified in browser
Changed
- Version raised to 3.0.0 across backend, config, UI, package metadata, tests, and launcher
- E2E suite validates
3.0.0 (see UI_TEST_REPORT_v3.0.0.md)
Testing
- 24/24 unit tests pass
- 68/68 live UI/action E2E checks pass
[2.32.0] - 2026-11-10
Added
- Version consistency aligned across backend, config, UI, package metadata, and E2E tests
- Startup banner displays version 2.32.0
- E2E test suite validates
2.32.0 in health endpoint and cache-busted assets
- Dedicated release notes
RELEASE_NOTES_v2.32.0.md
- Audit report
AUDIT_REPORT.md documenting version consistency verification
Fixed
- Removed stale
2.31.0 version references from all critical files
- Backend startup banner updated from
2.31.0 to 2.32.0
Changed
- All version references raised to 2.32.0 in
app.py, core/vault.py, api/system.py, static/index.html, static/style.css, static/app.js, data/config.json, pyproject.toml, tests/e2e_ui_actions.py, README.md
Testing
- 24/24 unit tests pass
- 68/68 live UI/action E2E checks pass
- All Python modules compile cleanly
- Version consistency audit passes across all critical files
[2.31.0] - 2026-11-09
Added
- Token-driven corporate design system in
static/style.css (light/dark/auto theme).
- Editor toolbar with formatting insert helpers;
Ctrl+B / Ctrl+I; Tab indents.
- Clickable checkbox in preview toggles the Markdown source task.
- Outline-to-caret/preview heading jumps.
- Attach-file flow from the UI (uploads to
vault/Attachments).
- Note-list sorting and collapsible folder tree (state persisted).
- Report + ask + find/replace + history dialogs; palette groups and keyboard navigation.
Copy note markdown, Duplicate current note commands.
Fixed
- View-mode cycle now correctly hides the editor in Preview and matches its button label.
- Renaming a note now remaps persistent tabs instead of leaving dead entries.
- Deleting a note clears its tab reliably.
Changed
- All blocking
alert/prompt/confirm interactions replaced with in-app dialogs.
- Cache-bust and health version raised to 2.31.0; UI E2E expectations updated.
Testing
- 60+ live UI/action checks re-run (see
UI_TEST_REPORT_v2.31.0.md).
[2.30.4] - 2026-11-05
Fixed
- Independent scrolling for every long UI pane and dialog.
- Preview overflow and compact-height behavior.
- Note and preview scroll positioning.
Testing
- Re-audited all commands, buttons and API-backed actions.
[2.30.4] - 2026-11-05
Fixed
- Editor and preview vertical scrolling.
- Navigation and command-palette scroll regions.
- Flex/grid shrink constraints that trapped long note content.
Testing
- 63 live UI/action checks passed.
- 24 automated unit/layout checks passed.
- Revalidated all command and button linkages.
[2.30.4] - 2026-11-05
Fixed
- Rebuilt Windows launch flow and clarified that
index.html cannot run standalone.
- Added direct-file and server-connection diagnostics.
- Revalidated every control, command function, and API linkage.
[2.30.4] - 2026-11-05
Fixed
- Prevented stale broken JavaScript from being reused through versioned assets and no-cache headers.
- Added visible async error handling for all command-palette actions.
- Rendered command-palette entries as accessible buttons.
Testing
- Added a 60-check live-server UI/end-to-end suite covering every menu action and primary control.
- Added
UI_TEST_REPORT_v2.30.4.md with the complete result inventory.
Retained
- All v2.30.0 architecture, security, APIs and cumulative functionality.
[2.30.4] - 2026-11-05
Architecture
- Added canonical immutable Task model and parser.
- Centralized task metadata syntax.
- Added core, services, and API package boundaries.
- Added reusable TaskRepository and typed application errors.
Front-end blocker fix
- Repaired invalid Markdown/wiki-link JavaScript regular expressions that stopped
app.js at parse time.
- Added front-end syntax and control-wiring regression coverage.
Reliability
- Expanded automated tests from 3 to 19.
- Added parser, repository, security, alias, default, dependency, and serialization coverage.
- Restored v2.3.0 release-note continuity.
- Rewrote architecture documentation to be version-neutral.
Retained
- Existing v2.29 features, routes, Markdown compatibility, and standard-library portability.
[2.29.0] - 2026-11-05
Added
- Execution Readiness API and command
- Ready, Attention, and Blocked task states
- Deterministic readiness scoring and blocker explanations
- Project-level readiness rollups
Retained
- All v2.28 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Metadata Quality API and command
- Task metadata completeness scoring
- Duplicate task-ID and unresolved-dependency diagnostics
- Project-level quality rollups
Retained
- All v2.27 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Baseline Health API and command
- Baseline coverage and tracked/untracked metrics
- Project Green/Amber/Red health classification
Retained
- All v2.26 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Baseline task dates
- Schedule Slippage API and command
- Per-task slip days and project-level slippage rollups
Retained
- All v2.25 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Daily Schedule Plan API and command
- Configurable daily capacity
- Capacity-constrained effort splitting
- Due-date/priority ordering and plan finish date
Retained
- All v2.24 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Capacity-based delivery forecast API and command
- Remaining-effort and weeks-needed calculation
- Forecast finish date and schedule-risk classification
Retained
- All v2.23 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Burndown planning API and command
- Configurable 1-90 day horizon
- Ideal and scheduled remaining-effort trajectories
Retained
- All v2.22 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Seven-day capacity planning
- Configurable weekly capacity
- Utilization, remaining hours, and load status
- Capacity API and command
Retained
- All v2.21 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Task effort estimates
- Workload API and command
- Project effort, urgency, unestimated-work and load-score metrics
Retained
- All v2.20 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Task Risk Radar API and command
- Deterministic risk score and severity classification
- Risk reasons covering due dates, priorities, and dependencies
Retained
- All v2.19 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Critical-path API and command
- Dependency-depth analysis
- Critical-chain candidate and cycle detection
Retained
- All v2.18 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Markdown task IDs and dependencies
- Dependency API and command
- Ready, Blocked, and Unresolved classifications
- Missing dependency diagnostics
Retained
- All v2.17 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Milestone Board API and command
- Overdue, Active and Done milestone lanes
- Project/milestone filtering
- Per-milestone progress summaries
Retained
- All v2.16 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Markdown milestone metadata
- Milestone API and command
- Milestone progress, overdue, completion, and next-due metrics
Retained
- All v2.15 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Project Timeline API and command
- Chronological dated-task views
- Project filtering and monthly rollups
Retained
- All v2.14 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Project Workspace API and command
- Focused project metrics and task list
- Source-note counts
- Risk-aware project task ordering
Retained
- All v2.13 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Project Health API and command
- Per-project completion and workload metrics
- Overdue/high-priority project risk indicators
- Next-due-date tracking
Retained
- All v2.12 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Productivity statistics API and command
- Completion percentage
- Overdue and due-today metrics
- Priority distribution and per-project completion rollups
Retained
- All v2.11 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Weekly review API and command
- Review summary metrics
- Project workload rollup
- Overdue, next-seven-day, and undated review groups
Retained
- All v2.10 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Configurable task Focus API
- Overdue/today/upcoming/priority focus buckets
- Priority-aware focus sorting
- 7-day Focus command
Retained
- All v2.9 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Kanban-style task board API
- Overdue, Today, Upcoming, No Due Date, and Done lanes
- Project board filtering
- Priority-aware lane ordering
- Task Board command
Retained
- All v2.8 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Dated task calendar API
- Date-range agenda filtering
- Task calendar command
- Calendar entries retain project, priority, note, path, and line context
Retained
- All v2.7 and earlier functionality.
[2.29.0] - 2026-11-05
Added
- Task and project dashboard API
- Vault-wide completion and overdue statistics
- Per-project workload rollups
- Dashboard command-palette action
Retained
- All v2.6 and earlier functionality.
[2.6.0] - 2026-11-05
Added
- Task priority and project metadata
- Overdue detection
- Priority/project task filtering
- Overdue and high-priority command views
- Deterministic task ordering
Retained
- All v2.5 and earlier functionality.
[2.5.0] - 2026-11-05
Added
- Global Markdown task aggregation
- Open/completed task filters
- Due-date recognition
- Global open-task command
Retained
- All 2.4 functionality remains available.
[2.4.0] - 2026-11-05
Added
- FTS5 search endpoint with fallback search
- Saved searches
- Unlinked mention discovery
- Duplicate-note detection
- Folder/tag search filters at the API layer
Retained
- Existing local-first Markdown notes, attachments, tabs, note history, wiki links/backlinks, export, trash, daily notes, templates, and privacy model.
[2.2.0] - 2026-11-05
Added
- Multi-note tab strip with persistent recent tabs
- Find and replace with
Ctrl+F
- Automatic local note history snapshots, retaining the latest 20 revisions per note
- History restore command from the command palette
Retained
- Markdown vault source of truth, nested folders, wiki links/backlinks, tags, favorites, pinning, daily notes, templates, autosave, external-change detection, rename-safe links, SQLite index, recoverable trash, ZIP export, command palette, preview modes, themes, and localhost-only operation from 2.1.0
- Original Markdown-note interoperability and lightweight workflow from the 2.0 lineage
Security
- Server remains bound to
127.0.0.1 and vault traversal protection remains enabled.
[2.1.0] - 2026-11-05
- Markdown Vault Foundation.