File size: 1,291 Bytes
292d92c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Diagnose, fix, and validate a specific bug in the software repository.

Your task:
1. Understand the bug:
   - Get detailed description from user
   - Identify expected vs. actual behavior
   - Determine reproduction steps
   - Check error messages and logs

2. Diagnose the issue:
   - Locate relevant code sections
   - Trace execution flow
   - Identify root cause
   - Check for similar issues

3. Propose solution:
   - Explain what's causing the bug
   - Suggest fix approach
   - Discuss potential side effects
   - Consider alternative solutions

4. Implement fix:
   - Make minimal, targeted changes
   - Follow project code style
   - Add comments if logic is complex
   - Update related code if needed

5. Validate the fix:
   - Test the specific bug scenario
   - Check for regressions
   - Run existing tests
   - Verify edge cases

6. Document the fix:
   - Update CHANGELOG
   - Add comments explaining the fix
   - Update documentation if needed
   - Create test case to prevent regression

7. Completion checklist:
   - [ ] Bug reproduced
   - [ ] Root cause identified
   - [ ] Fix implemented
   - [ ] Tests pass
   - [ ] No regressions introduced
   - [ ] Documentation updated

Focus on fixing ONE specific bug thoroughly, ensuring it's properly resolved and validated.