Document annotation comment targets first identical text occurrence
Pre-submission checklist
- I searched open and closed issues. Related annotation issues #9336 and #9673 do not describe selection moving to an earlier identical occurrence.
- The affected instance reports Paperclip
2026.916.1. - The behavior occurs in the Paperclip document-annotation UI and is not adapter-specific.
What happened?
When a Paperclip issue document contains the same text in more than one location, selecting a later occurrence and clicking Comment does not preserve the selected occurrence. The comment modal changes its highlight to the first matching occurrence of that text in the document, which may appear much earlier.
This makes the proposed annotation point at the wrong passage before the reviewer has submitted a comment. It can cause feedback to be attached to or interpreted as applying to unrelated text.
Expected behavior
The comment modal and the annotation it creates must retain the exact document range selected by the reviewer. If identical text occurs elsewhere, the selected occurrence must remain the target. Quote matching must not replace the original positional selection with the first matching text.
Steps to reproduce
- Open an issue document that contains the same phrase in at least two separate locations.
- Select the later occurrence of that phrase.
- Click Comment in the text-selection UI.
- Observe the highlighted text in the comment modal.
- The highlight moves to the first occurrence of the phrase rather than staying on the selected later occurrence.
Paperclip version or commit
2026.916.1
Deployment mode
Self-hosted server (authenticated, private exposure)
Installation method
Other - managed Paperclip instance
Agent adapter(s) involved
- Not adapter-specific (core UI bug)
Database mode
Not database-related
Access context
Board (human operator)
Node.js version
v24.17.0
Operating system
Linux 6.18.35-68.127.amzn2023.x86_64
Relevant logs or output
No browser-console or server error was reported. The defect is visible in the document annotation selection state.Relevant config (if applicable)
{}Additional context
The issue was reported from a document-artifact review workflow. It has not been independently reproduced in a separate instance during triage. The public issue should preserve that limitation while giving maintainers an exact UI reproduction path.
Privacy checklist
- I reviewed the report for PII, local paths, company data, API keys, and tokens. None are included.
Source: paperclipai/paperclip