Summary
With the vault set to "Vault root" mode, zn create and the MCP create_note tool still write new notes to inbox/. vault_info also reports primaryNotesLocation: inbox. Reading and searching root-level notes works fine, so only creation and mode detection are affected.
Environment
- ZenNotes 2.45.0 (zn v2.45.0), macOS 26.6.2
- Local vault,
.zennotes/vault.json contains "primaryNotesLocation": "root"
Steps to reproduce
- Settings → Vault → Notes → Primary notes location → "Vault root".
- Confirm
.zennotes/vault.json has "primaryNotesLocation": "root".
- Run
zn create --title Test --body test --json.
Expected
path is Test.md at the vault root, and vault_info (MCP) reports primaryNotesLocation: root.
Actual
path is inbox/Test.md, and vault_info reports primaryNotesLocation: inbox.
Notes
- Reproduces after restarting the app, the MCP process, and a full reboot.
zn list and zn search do return a note placed manually at the vault root, so reads honor the layout.
- The tool descriptions in
server-*.js document root-mode behavior, but I couldn't find any code path in the CLI bundle that reads primaryNotesLocation from vault.json.
Summary
With the vault set to "Vault root" mode,
zn createand the MCPcreate_notetool still write new notes toinbox/.vault_infoalso reportsprimaryNotesLocation: inbox. Reading and searching root-level notes works fine, so only creation and mode detection are affected.Environment
.zennotes/vault.jsoncontains"primaryNotesLocation": "root"Steps to reproduce
.zennotes/vault.jsonhas"primaryNotesLocation": "root".zn create --title Test --body test --json.Expected
pathisTest.mdat the vault root, andvault_info(MCP) reportsprimaryNotesLocation: root.Actual
pathisinbox/Test.md, andvault_inforeportsprimaryNotesLocation: inbox.Notes
zn listandzn searchdo return a note placed manually at the vault root, so reads honor the layout.server-*.jsdocument root-mode behavior, but I couldn't find any code path in the CLI bundle that readsprimaryNotesLocationfromvault.json.