-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Problem
Review comments that are discussions, proposals, or questions (not code fixes) are currently ignored by the task generation system. These important conversations get lost and are never tracked.
Current Behavior
Comments that get ignored:
- "What do you think about using X pattern instead?"
- "Should we consider performance implications here?"
- "Have you thought about edge case Y?"
- "I suggest we refactor this differently - thoughts?"
- Discussion threads about design decisions
- Proposal comments without direct code changes
Result:
- Important discussions are not tracked
- Developer may forget to respond
- Reviewers feel their questions are ignored
- No clear workflow for handling non-implementation feedback
Desired Behavior
Task Type Classification
Create a new task type for discussion/proposal comments:
Implementation Tasks (existing):
- Require code changes
- Can be verified programmatically
- Have clear done criteria
- Example: "Fix null pointer bug in handler"
Discussion Tasks (new):
- Require human response/decision
- Cannot be auto-verified
- Need reviewer acknowledgment
- Example: "Respond to performance optimization proposal"
Workflow for Discussion Tasks
# System detects discussion comment and creates special task
$ reviewtask
β Generated 3 implementation tasks
β Generated 2 discussion tasks
π Discussion tasks require your response on GitHub
# Show discussion task
$ reviewtask show abc123
Task: Respond to reviewer's refactoring proposal
Type: discussion
Priority: medium
Status: todo
π¬ Reviewer Question:
"Have you considered using the strategy pattern here?
It might make this more extensible."
π Next steps:
β’ Read the full discussion: [GitHub Thread URL]
β’ Reply to the comment on GitHub with your thoughts
β’ Run 'reviewtask update abc123 done' after responding
# User responds on GitHub, then marks as done
$ reviewtask update abc123 done
β Updated task 'abc123' to 'done'
π Note: Discussion tasks are resolved when marked doneImplementation Strategy
Phase 1: Detect Discussion Comments
- AI prompt enhancement to classify comment types
- Distinguish between "implement this" vs "what about this?"
- Identify questions, proposals, and open discussions
- Mark comments requiring human dialogue
Phase 2: Create Discussion Task Type
- Add
typefield to Task struct:"implementation"|"discussion" - Store discussion tasks separately or with type flag
- Display discussion tasks distinctly in
reviewtask show - Filter tasks by type in
reviewtask status
Phase 3: Guide User Response
- Show discussion tasks with "respond on GitHub" guidance
- Include direct link to comment thread
- Suggest marking done after responding
- Track response status
Phase 4: Future Enhancement (Auto-resolution)
- Detect when user has replied on GitHub
- Auto-mark discussion tasks as done when response posted
- Auto-resolve thread after user response (optional)
- Notify if discussion continues (new replies)
Example AI Task Generation
Current (Ignored)
{
"comment": "What do you think about caching this result?",
"action": "IGNORED - no clear implementation task"
}Proposed (Captured)
{
"id": "task-disc-1",
"type": "discussion",
"category": "proposal",
"title": "Respond to caching suggestion",
"description": "Reviewer proposes adding caching. Discuss feasibility and trade-offs.",
"reviewer_question": "What do you think about caching this result?",
"requires_response": true,
"implementation_task": false,
"source_comment_id": 12345,
"url": "https://github.com/..."
}Task Display Format
Implementation Task (Existing)
π Fix validation error handling
Type: implementation
Priority: high
Status: doing
β‘ Add null check before validation
β‘ Return proper error message
Discussion Task (New)
π¬ Respond to performance optimization proposal
Type: discussion
Priority: medium
Status: todo
Reviewer asks: "Should we batch these database calls?"
Action needed:
β Respond on GitHub: [link to thread]
β Mark done after responding
Benefits
For Developers
- β Never miss important discussions
- β Clear action item to respond
- β Track discussion resolution like other tasks
- β Guided workflow for non-code feedback
For Reviewers
- β Confidence that questions won't be ignored
- β See when developer has responded (future: auto-detect)
- β Clear signal that feedback was acknowledged
- β Better collaboration on design decisions
For Teams
- β Track both implementation and discussion progress
- β Ensure all review feedback is addressed
- β Prevent lost conversations
- β Complete PR review accountability
Configuration
Add settings for discussion task handling:
{
"ai_settings": {
"process_discussion_comments": true,
"discussion_task_priority": "medium",
"auto_resolve_discussions": false
}
}Example Use Cases
Case 1: Design Question
Reviewer: "Why did you choose approach X over Y?"
β Discussion Task: "Explain design decision to reviewer"
β User responds on GitHub with rationale
β Mark task as done
Case 2: Proposal
Reviewer: "I suggest using dependency injection here"
β Discussion Task: "Consider dependency injection proposal"
β User discusses pros/cons on GitHub
β May create follow-up implementation task
β Mark discussion as done
Case 3: Open Question
Reviewer: "How does this handle edge case Z?"
β Discussion Task: "Answer edge case handling question"
β User explains on GitHub or creates implementation task
β Mark discussion as done
Success Criteria
- Zero important discussions are ignored
- Users have clear action items for responding to questions
- Discussion tasks are visibly different from implementation tasks
- Workflow guides user to respond on GitHub
- Can filter/view tasks by type (implementation vs discussion)
- Future: Auto-detect when user has responded
Future Enhancements (Out of Scope for Initial Implementation)
- Auto-Response Detection: Detect when user has replied on GitHub and auto-mark done
- Thread Continuation: Create new discussion task if reviewer replies again
- AI-Assisted Drafts: Generate suggested responses for common questions
- Discussion Summary: Summarize multi-comment discussions into single task
- Auto-Resolution: Auto-resolve discussion threads when marked done
Related Issues
- Relates to Support detecting resolved review comments to avoid redundant task generationΒ #185 (resolved comment detection) - helps track which discussions are closed
- Relates to Simplify workflow and add intelligent operation guidance to maintain stabilityΒ #187 (workflow guidance) - guidance would show how to handle discussions
- Relates to task deduplication - avoid duplicate discussion tasks for same question
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels