Skip to content

Agent annotations highlight in gold instead of a reserved color #21

Description

@nonatofabio

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.

  1. Auto-register agent as a collaborator with a reserved color (e.g. a muted accent) on first agent-created annotation.
  2. 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.
  3. 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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions