Skip to content

Add comment functionality to diff view with Claude integration - #19

Merged
promptium-ai merged 3 commits into
mainfrom
feature/comments
Aug 27, 2025
Merged

Add comment functionality to diff view with Claude integration#19
promptium-ai merged 3 commits into
mainfrom
feature/comments

Conversation

@promptium-ai

Copy link
Copy Markdown
Collaborator

Summary

  • Added ability to add comments to specific lines in the diff view
  • Comments can be sent to Claude via tmux session for automatic fixes
  • Comments persist in memory during app lifetime

Features

  • Press c to add/edit a comment on the current line
  • Press d to delete a comment
  • Press C to show all comments
  • Press S to send all comments to Claude in the tmux session
  • Comment dialog appears as overlay replacing the main view
  • Uses Alt+Enter (Escape Enter) to insert newlines without auto-submitting

Technical Details

  • Created CommentInputDialog component for comment entry
  • Added CommentStore and DiffComment models
  • Implemented CommentStoreManager singleton for persistent storage
  • Integrated with existing TmuxService for session management
  • Sends comments with proper formatting to Claude

Test Plan

  • Add comments to multiple lines
  • Edit existing comments
  • Delete comments
  • View all comments with C
  • Send comments to Claude with S
  • Verify comments persist across view changes
  • Confirm no auto-submission occurs

🤖 Generated with Claude Code

promptium-ai and others added 3 commits August 27, 2025 15:46
- Fixed comment dialog width to be consistent (70 chars)
- Implemented smart tmux session management for sending comments
- Added persistent comment storage across app lifetime
- Comments now sent directly to Claude in tmux sessions
- Auto-creates and attaches to sessions as needed
- Waits for Claude to be ready before sending comments
- Changed from sending plain Enter (C-m) after each line
- Now sends Escape Enter (Alt+Enter) to insert newlines without submitting
- Preserves formatting while allowing user to review before manual submission

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@promptium-ai
promptium-ai merged commit 396d2c4 into main Aug 27, 2025
1 check passed
@agent-era
agent-era deleted the feature/comments branch September 9, 2025 16:21
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