Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: Theo Notes – open-source alternative to Apple Notes and Obsidian (opens external site)

3 points by jankutschera 2 days ago github.com 3 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (1)

  1. Thanks, good questions.

    1) Locked notes: yes, regardless of tag filters. A password-locked note has no readable text anywhere in the library: the body is stored encrypted, so it is not in the FTS5 index in the clear, and the CLI and MCP tools only return metadata for it (locked: true, no content, derived title and stats blank). Asking for its content fails with a note_locked error. That holds without --only-tags/--exclude-tags; the tag scoping is an extra layer on top. One distinction: this is the per-note password lock. The app-level lock (App Lock) does not apply to the CLI/MCP server, and the app's Settings say so.

    2) Open notes: the MCP write goes into the same SQLite library and the running app gets a system notification. If the note is open, the editor receives it as an external change (applyExternalChange), not a reload. If the edit is away from the line you are typing on, the two merge. If it touches the line you are typing on, your typing wins and the agent's text is saved as a conflict copy instead of silently overwriting. External changes sit outside the editor's undo stack, and undoing your own edit keeps them. Writes can also carry a base hash, so an agent can't overwrite text it hasn't read (stale_hash).

    Caveat: that behaviour is pinned by tests against the real app environment with a fake editor page, not in a live WKWebView. I haven't verified cursor position pixel by pixel there, so tell me if you see it jump.