Agent-created annotations have author: "agent", but "agent" is never auto-registered in the collaborator registry (only the human user is, on save). The reader-pane color lookup store.collaborators["agent"]?.color misses and falls to the #FFD700 gold default.
Result: agent annotations and unconfigured-user annotations look identical in the reader pane. The AGENT label in the sidebar distinguishes them, but the reader-pane highlight doesn't.
Options.
- Auto-register
agent as a collaborator with a reserved color (e.g. a muted accent) on first agent-created annotation.
- Add a CSS rule for marks with
data-author="agent" (or via the existing --collab-color mechanism set to a derived value) and give it a desaturated accent.
- Leave gold — accept that the AGENT label is sufficient distinction.
Recommendation. Option 2 — keeps the registry user-facing only and avoids implicit auto-registration semantics.
References. Sources/mindle/WebReaderView.swift:78-82, Resources/web/reader.js:1175-1185, Resources/web/reader.css (mark.mindle-hl rules).
Agent-created annotations have
author: "agent", but"agent"is never auto-registered in the collaborator registry (only the human user is, on save). The reader-pane color lookupstore.collaborators["agent"]?.colormisses and falls to the#FFD700gold default.Result: agent annotations and unconfigured-user annotations look identical in the reader pane. The AGENT label in the sidebar distinguishes them, but the reader-pane highlight doesn't.
Options.
agentas a collaborator with a reserved color (e.g. a muted accent) on first agent-created annotation.data-author="agent"(or via the existing--collab-colormechanism set to a derived value) and give it a desaturated accent.Recommendation. Option 2 — keeps the registry user-facing only and avoids implicit auto-registration semantics.
References.
Sources/mindle/WebReaderView.swift:78-82,Resources/web/reader.js:1175-1185,Resources/web/reader.css(mark.mindle-hl rules).