-
Notifications
You must be signed in to change notification settings - Fork 5
"Fix with AI" sends empty codegenInstructions - all comments have empty instructions #4
Description
Description
The "Fix with AI" feature sends empty codegenInstructions for all review comments. The terminal receives a prompt with empty bullet points instead of actual fix instructions.
Environment
- Extension Version: 0.17.0
- OS: Windows 10 Pro 10.0.19045
- VS Code Version: 1.109.4
Steps to Reproduce
- Install CodeRabbit extension v0.17.0
- Run a code review on a repository with multiple files
- Wait for review comments to appear
- Click "Fix with AI" on any comment (or use bulk "Fix all with AI")
- Observe the command sent to terminal
Expected Behavior
The terminal should receive a command with actual fix instructions:
claude "Fix the following issues...\n\n- Add null check for user input in auth.go line 42\n\n- ..."
Actual Behavior
The terminal receives empty instructions for all 34 comments:
claude "Fix the following issues. The issues can be from different files or can overlap on same lines in one file.\n\n- \n\n- \n\n- \n\n- \n\n- ..."
Analysis
The codegenInstructions field is empty/undefined for all comments received from the server. The extension code in buildPromptFromComments iterates over comments but comment.codegenInstructions is empty.
This also affects Clipboard mode - pasting results in empty content.
Additional Context
- Tested with both "Claude Code" and "Clipboard" agent types - same result
- The review comments themselves display correctly in the sidebar
- Only the
codegenInstructionsfield appears to be missing from the server response
