When a user opens a fresh document and creates annotations before setting their identity, those annotations get author: "user" (the IdentityManager default). When they later configure their alias to e.g. fnp, the existing annotations retain author: "user" — they never pick up the new color and don't appear in the truncated-alias label.
Suggested fix. On first identity set (IdentityManager.shared.save with the previous alias being "user"), prompt: "You have N annotations marked anonymous. Claim them as <new alias>?" If yes, sweep all open-document annotations and rewrite author: "user" → author: <new alias>, then save the sidecar.
Skip the prompt if there are zero pre-identity annotations.
References. Sources/mindle/IdentityManager.swift:43-48 (save), DocumentStore.swift:571-606 (highlightSelection), :608-634 (addNoteToSelection).
When a user opens a fresh document and creates annotations before setting their identity, those annotations get
author: "user"(theIdentityManagerdefault). When they later configure their alias to e.g.fnp, the existing annotations retainauthor: "user"— they never pick up the new color and don't appear in the truncated-alias label.Suggested fix. On first identity set (
IdentityManager.shared.savewith the previous alias being"user"), prompt: "You have N annotations marked anonymous. Claim them as<new alias>?" If yes, sweep all open-document annotations and rewriteauthor: "user"→author: <new alias>, then save the sidecar.Skip the prompt if there are zero pre-identity annotations.
References.
Sources/mindle/IdentityManager.swift:43-48(save),DocumentStore.swift:571-606(highlightSelection),:608-634(addNoteToSelection).