Skip to content

"Fix with AI" sends empty codegenInstructions - all comments have empty instructions #4

@doriandermanovic

Description

@doriandermanovic

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

  1. Install CodeRabbit extension v0.17.0
  2. Run a code review on a repository with multiple files
  3. Wait for review comments to appear
  4. Click "Fix with AI" on any comment (or use bulk "Fix all with AI")
  5. 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 codegenInstructions field appears to be missing from the server response
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions