Stable host-side project identity (the note id). The editor keys its doc:open idempotency guard on THIS: (projectName, mainFile) collides trivially (two "Untitled" projects, both main.tex), so a real switch would read as a re-send and a later save would write the wrong project.
The document/project payload the host mounts into the editor.