Skip to content

Add hunk comments for agent review workflow#1

Merged
Bradley-Butcher merged 3 commits into
mainfrom
feature/hunk-comments
Mar 13, 2026
Merged

Add hunk comments for agent review workflow#1
Bradley-Butcher merged 3 commits into
mainfrom
feature/hunk-comments

Conversation

@Bradley-Butcher

Copy link
Copy Markdown
Owner

Summary

  • Right-click any hunk (or press n) to add a comment — floating input anchored to the hunk
  • Comments appear inline below hunk headers with [!] badge
  • Y copies all comments + hunks as markdown, ready to paste to your agent
  • C opens a comments browser with checkboxes for selective copy
  • N removes a comment, D clears all
  • Double-click / y hunk copy includes attached comments
  • Comments are per-repo, ephemeral (cleared on diff refresh)

Test plan

  • Right-click a hunk line — comment input appears, type note, Ctrl+D saves
  • [!] badge visible on annotated hunk headers
  • Comment text appears as amber rows below hunk header
  • Y copies all to clipboard as markdown with diff blocks
  • C opens browser, space toggles checkboxes, y copies selected
  • D clears all comments, status bar shows confirmation
  • Comments survive tab switching, cleared on file change
  • Works in both unified and side-by-side modes

🤖 Generated with Claude Code

Bradley-Butcher and others added 3 commits March 13, 2026 22:20
Right-click any hunk to add a comment. Comments appear inline below the
hunk header with [!] badge. Copy all comments as formatted markdown with
Y, or selectively via the comments browser (C).

Features:
- Right-click or `n` to add/edit comment on a hunk
- `N` to remove, `D` to clear all
- `Y` copies all comments + hunks as markdown for pasting to agent
- `C` opens comments browser with checkboxes for selective copy
- Double-click/y hunk copy includes attached comments
- Comments are per-repo, cleared on diff refresh
- Multi-line input (Enter for newline, Ctrl+D to save)
- Flash + status message feedback on copy/clear
- Vec<FlashState> supports flashing multiple hunks on Y
- status_message field for transient UI feedback

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Bradley-Butcher Bradley-Butcher merged commit fc11f4c into main Mar 13, 2026
3 checks passed
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.

1 participant