Skip to content

Conversation

@SANJAY23CB50
Copy link

Description

Fixes #4306 - Handles RuntimeError when encountering circular symlinks in the repository.

Changes

  • Modified safe_abs_path() in aider/utils.py to catch RuntimeError for symlink loops
  • Added fallback to Path.absolute() when Path.resolve() encounters circular symlinks
  • Uses strict=False parameter to handle broken symlinks gracefully
  • Added test case in tests/test_utils_symlinks.py to verify the fix

Testing

  • Added unit test for circular symlink handling
  • Verified aider no longer crashes on repositories with symlink loops

Related Issue

Closes #4306

…ap config_writer() in try-except block - Add graceful error handling for permission issues - Prevents crash when using repositories on network drives - Fixes Aider-AI#4508
…me-no-background flag to disable backgrounds - Implement CustomMarkdown renderer with background control - Clear menu background colors in light mode - Add theme utilities for background removal - Update light-mode to work properly on light terminals - Fixes Aider-AI#4519
- Added RuntimeError exception handling for circular symlinks
- Fall back to absolute() when resolve() encounters symlink loop
- Added test case in tests/test_utils_symlinks.py
- Fixes issue where aider crashes on circular symbolic links
@CLAassistant
Copy link

CLAassistant commented Oct 10, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants