You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix suggest-review mode to allow multi-line suggestions
- Increased context window from 10 to 15 lines for better code understanding
- Updated prompt guidelines to allow function-level suggestions when needed
- Clarified that GitHub suggestions can handle multi-line changes
- Modified instructions to focus on proper implementation vs. line restriction
- Added explicit permission to modify multiple lines if necessary in strict mode
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
@@ -67,7 +68,8 @@ IMPORTANT - STRICT MODE IS ENABLED:
67
68
2. Do NOT make any unrelated improvements to the code, even if they would be beneficial
68
69
3. If the user asks to "add X", focus exclusively on adding X, not refactoring existing code
69
70
4. If you identify other issues in the code, DO NOT address them in your suggestion
70
-
5. Stay hyper-focused on the specific request, even if other improvements seem obvious
71
+
5. Stay focused on the specific request, even if other improvements seem obvious
72
+
6. You MAY modify multiple lines if necessary to properly implement what was requested, but do not add unrelated features
71
73
EOF
72
74
)
73
75
fi
@@ -85,8 +87,10 @@ You MUST format your response as a SINGLE suggestion using the exact GitHub sugg
85
87
$STRICT_INSTRUCTIONS
86
88
87
89
Guidelines:
88
-
1. Focus ONLY on line $LINE_NUMBER and immediately surrounding lines
89
-
2. Keep the suggestion concise - it should replace just what needs to be changed
90
+
1. You should suggest changes to fix the issue at line $LINE_NUMBER
91
+
2. GitHub's suggestion format can handle multi-line changes, so you can suggest:
92
+
- Changes to just line $LINE_NUMBER if that's sufficient
93
+
- Changes to an entire function or block if needed to properly fix the issue
90
94
3. Maintain the existing indentation and code style
91
95
4. Ensure your suggestion is syntactically correct
92
96
5. Start your response with a brief explanation, then provide the suggestion block
@@ -110,7 +114,7 @@ $FILE_CONTENT
110
114
User query:
111
115
$FEEDBACK
112
116
113
-
Provide a single, specific suggestion that addresses this query for the code at line $LINE_NUMBER.
117
+
Provide a singlesuggestion that addresses this query. Your suggestion can include multiple lines if needed to properly implement the requested functionality or fix. Include enough context so the suggestion can be applied cleanly.
0 commit comments