Skip to content

feat(web): comment on project PDFs from the Files panel - #371

Merged
tannerpolley merged 1 commit into
mainfrom
issue-369-annotate-pdfs-in-the-files-panel-and
Nov 11, 2026
Merged

tannerpolley merged 1 commit into
mainfrom
issue-369-annotate-pdfs-in-the-files-panel-and

Conversation

@tannerpolley

Copy link
Copy Markdown
Owner

Reading a slide deck or manuscript in the Files panel gave no way to leave comments for the agent.

Now you can mark selected text, a dragged area or a spot on any page and type a comment for each mark. Each comment shows as a numbered mark on the page and as a composer chip. One Send delivers them all. The agent gets the file, the page, the quote or area, and the comment. Area and spot marks also attach a cropped PNG of the marked region, at most 1024 px.

  • Comment records: comments reuse the existing review-comment chips. The mark's page position is a draft-only field, so nothing changes in packages/contracts or the server, and remote connections work through the same path.
  • Web viewer: on web, project PDFs in the Files panel switch to the pdf.js viewer the desktop app already uses. Attachment previews keep the browser's built-in viewer.
  • Where the code lives: the fork code is in a new PdfComments.tsx, with small hooks in PdfViewer, BrowserDocumentFrame, FilePreviewPanel, reviewCommentContext and composerDraftStore. The last one makes deleting a chip delete its picture.
  • Tests: a comment-builder table test and one PdfViewer browser case. The PR also adds a short section to docs/user/composer.md.

Design: #369 (comment). Before and after captures follow from the in-app browser pass.

Closes #369

🤖 Generated with Claude Code

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Annotate PDFs in the Files panel and send all the comments to the agent at once

1 participant