feat: named image references and annotate command#147
Merged
backnotprop merged 3 commits intomainfrom Feb 13, 2026
Merged
Conversation
Add human-readable names to image attachments throughout the annotation pipeline, and add a new `plannotator annotate <file.md>` command for annotating arbitrary markdown files. Image names: ImageAttachment type replaces plain string paths, upload endpoints return originalName, editable name inputs under thumbnails, [name] path format in exported feedback, backward-compatible sharing. Annotate command: new server module reusing plan editor HTML with mode:"annotate", CLI subcommand, slash commands for Claude Code and OpenCode, annotate mode UI (hides Approve, shows Send Annotations). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Feb 13, 2026
The name input now appears on the full-screen annotator modal that opens immediately when uploading/pasting an image, pre-populated from the filename. Removes the disruptive inline name editing from thumbnails. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
Author
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Fix race condition where globalAttachments was captured as empty array in the paste event listener (missing dependency). Also update CLAUDE.md to document ImageAttachment type, annotate server/flow, updated sharing format with image support, and new slash commands. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ImageAttachmentobjects ({path, name}) throughout the annotation pipeline. Users can edit names inline under thumbnails. Exported feedback uses[name] /tmp/path...format. Sharing format is backward-compatible with old URLs.plannotator annotate <file.md>- Annotate any markdown file #109): Newplannotator annotate <file.md>CLI subcommand and/plannotator-annotateslash command. Opens any markdown file in the Plannotator annotation UI for structured feedback. Reuses the plan editor HTML withmode: "annotate"— no new build target needed.Closes #67
Closes #109
Changed files
packages/ui/types.tsImageAttachmentinterface,Annotation.imagesreplaces.imagePathspackages/server/index.ts,review.tsoriginalNamepackages/server/annotate.ts(new)packages/server/package.json./annotateAttachmentsButton.tsxderiveImageName(), editable name inputsAnnotationToolbar.tsx,Viewer.tsx,AnnotationPanel.tsxImageAttachment[]propsparser.ts[name] pathexport formatsharing.ts,useSharing.tsShareableImagetypeApp.tsxannotateModestate, annotate feedback handler, UI conditionalsapps/hook/server/index.tsannotatesubcommandapps/hook/commands/plannotator-annotate.md(new)apps/opencode-plugin/index.tsapps/opencode-plugin/commands/plannotator-annotate.md(new)Test plan
Login Mockup.png→ verify default name islogin-mockupimage-1[image-name] /tmp/...formatimagePaths→ images still load (backward compat)plannotator annotate README.md→ browser opens → annotation tools work → Send Annotations/plannotator-annotate README.md→ same flow via slash commandbun run build:hook && bun run build:opencode→ clean build🤖 Generated with Claude Code