Git provider (optional)
Gitlab
System Info (optional)
Options Used:
2025-06-09 10:56:57.574 | INFO | pr_agent.git_providers.utils:apply_repo_settings:45 - Applying repo settings: {'CONFIG': {'publish_output': True, 'verbosity_level': 2, 'response_language': 'ru-RU', 'allow_dynamic_context': True, 'max_extra_lines_before_dynamic_context': 10, 'max_extra_lines_after_dynamic_context': 10, 'patch_extra_lines_before': 4, 'patch_extra_lines_after': 4}, 'PR_REVIEWER': {'enable_review_labels_effort': False}}
Model: Claude Sonnet 3.5
Source code language: Go
PR Agent version: codiumai/pr-agent:latest
Issues details
We are using PR Agent in our development workflow (free version), but we've encountered an issue: the fixes or changes generated by agent often contain spaces instead of tabs (or different number of spaces) than the original code. This results in unintended formatting changes.
Example:

Original code uses from 1 to 3 tabs as indent. But suggestion uses spaces and it leads to lint issues.
We also tried extra extructions, but it does not help:
Please check the following points when analyzing ONLY GO files:
1. When suggesting changes, use tabs instead of spaces - it's VERY IMPORTANT.
2. Pay attention to the number of spaces in the original code when you propose a new one. You MUST keep the same indentation as in the original code.
Do you have any suggestions how we can fix that behavior? Thanks!
Git provider (optional)
Gitlab
System Info (optional)
Options Used:
2025-06-09 10:56:57.574 | INFO | pr_agent.git_providers.utils:apply_repo_settings:45 - Applying repo settings: {'CONFIG': {'publish_output': True, 'verbosity_level': 2, 'response_language': 'ru-RU', 'allow_dynamic_context': True, 'max_extra_lines_before_dynamic_context': 10, 'max_extra_lines_after_dynamic_context': 10, 'patch_extra_lines_before': 4, 'patch_extra_lines_after': 4}, 'PR_REVIEWER': {'enable_review_labels_effort': False}}Model: Claude Sonnet 3.5
Source code language: Go
PR Agent version: codiumai/pr-agent:latest
Issues details
We are using PR Agent in our development workflow (free version), but we've encountered an issue: the fixes or changes generated by agent often contain spaces instead of tabs (or different number of spaces) than the original code. This results in unintended formatting changes.
Example:

Original code uses from 1 to 3 tabs as indent. But suggestion uses spaces and it leads to lint issues.
We also tried extra extructions, but it does not help:
Do you have any suggestions how we can fix that behavior? Thanks!