131 Commits

Author SHA1 Message Date
Mathis Beer (aider) 7c9cff2f6e refactor: update HEAD regex to accept optional closing tag in search blocks
When working with HTML text, the network has a strong bias to go "well, this is '<' followed by text, it's a tag! I should close it with '>'." Then the edit would be ignored.
2025-06-24 10:23:25 +02:00
Paul Gauthier 5e210c700d fix: Handle filenames starting with fences or triple backticks correctly 2025-04-20 16:36:36 -07:00
Paul Gauthier (aider) c6ce871700 style: Apply linter to editblock_coder.py 2025-04-20 16:25:59 -07:00
Paul Gauthier (aider) f28504a2eb fix: Properly handle filenames starting with triple backticks 2025-04-20 16:25:55 -07:00
Paul Gauthier 48733a315b fix: Handle filenames starting with fence chars in editblock coder 2025-04-20 16:25:54 -07:00
zjy1412 9e54898866 fix: correctly detect edit blocks in diff-fenced mode 2025-04-17 14:30:13 +08:00
Paul Gauthier 0dde77009e re-enabled quad-backticks, but allow triple-backticks as fences when searching for filenames #2879 2025-02-05 12:50:02 -08:00
Paul Gauthier c71a92ac84 fix: handle empty original content when creating new files 2024-11-05 09:14:01 -08:00
Paul Gauthier 966a613ffe fix: handle non-existent files in EditBlockCoder #2233 2024-11-04 09:08:00 -08:00
Paul Gauthier e1d55c82b1 refactor: Improve edit handling with dry run and path resolution 2024-10-29 14:31:12 -07:00
Paul Gauthier (aider) 5b6be29c1c chore: remove obsolete comment about path variable 2024-10-29 14:28:39 -07:00
Paul Gauthier 28d9f6f8da refactor: add dry run mode to apply_edits method 2024-10-29 14:28:38 -07:00
Paul Gauthier 87a31a583a refactor: remove unused comment in EditBlockCoder 2024-10-29 14:11:13 -07:00
Paul Gauthier (aider) 7553104433 refactor: handle updated edits array returned from apply_edits 2024-10-29 14:10:21 -07:00
Paul Gauthier f9604633e6 fix: handle updated edits array in apply_edits return value 2024-10-29 14:10:19 -07:00
Paul Gauthier (aider) 04a2cbb494 refactor: update regex patterns to match complete lines with optional whitespace 2024-10-05 12:31:23 -07:00
Paul Gauthier 2b4206fd57 paul-gauthier -> Aider-AI 2024-10-04 13:06:38 -07:00
Paul Gauthier (aider) 454a2ebdcf style: format code using linter 2024-09-20 13:44:07 -07:00
Paul Gauthier (aider) 7fa1620f58 feat: Allow flexible matching of 5-9 characters in SEARCH/REPLACE block prefixes 2024-09-20 13:44:02 -07:00
Nikolay Sedelnikov 976d2bfd87 fix: handle edge case when next line after HEAD is missing 2024-08-30 16:21:56 +02:00
Nikolay Sedelnikov e8e1bd556f fix: Handle new file creation in the same folder 2024-08-30 15:52:05 +02:00
Paul Gauthier 35eecee739 better 2024-08-27 10:50:31 -07:00
Paul Gauthier (aider) cc8f488b23 fix: Remove unused 'subprocess' import in editblock_coder.py 2024-08-27 09:15:13 -07:00
Paul Gauthier 089863cf32 fix: Remove unused run_interactive_subprocess method from EditBlockCoder 2024-08-27 09:15:07 -07:00
Paul Gauthier 66e9c3834a fix: Improve filename detection in find_filename function 2024-08-26 13:52:35 -07:00
Paul Gauthier (aider) a716fda897 fix: Handle partial filename matches correctly in find_filename 2024-08-26 13:49:11 -07:00
Paul Gauthier 5b672e9bfd only take fuzzy matches that match a single valid fname 2024-08-26 12:11:49 -07:00
Paul Gauthier (aider) e17a1fff3a feat: implement fuzzy filename matching 2024-08-26 12:10:33 -07:00
Paul Gauthier dfce19f186 fix: Add fuzzy matching for finding filename in editblock_coder 2024-08-26 12:10:32 -07:00
Paul Gauthier 4b2227c71f don't disrupt \_ in filenames #1158 2024-08-26 12:08:46 -07:00
Paul Gauthier 8c766f81b2 use valid_fnames to improve find_filename 2024-08-26 12:03:36 -07:00
Paul Gauthier 544b8dd800 refactor shell_commands, so the run after autocommit 2024-08-22 13:27:01 -07:00
Paul Gauthier 72fd24e071 keep track of edited files during reflections 2024-08-22 12:21:28 -07:00
Paul Gauthier 4555e36e20 do not treat editblocks as shell commands 2024-08-22 09:26:50 -07:00
Paul Gauthier 3c249c6b3c fix: Require explicit yes for running shell commands 2024-08-21 21:37:07 -07:00
Paul Gauthier (aider) 6e866d7e8a fix: Remove unnecessary f-string prefix 2024-08-21 15:36:44 -07:00
Paul Gauthier f723fbefc3 fix: Improve error handling in EditBlockCoder 2024-08-21 15:36:36 -07:00
Paul Gauthier (aider) f5a546834d fix: Move try/except into run_interactive_subprocess and print tool_error on non-zero exit status 2024-08-21 15:32:43 -07:00
Paul Gauthier 26edd52d9d fix: Add command to input history before running it 2024-08-21 15:32:40 -07:00
Paul Gauthier (aider) 7eb761fd98 style: format code with linter 2024-08-21 15:23:12 -07:00
Paul Gauthier (aider) aac2274851 fix: Use singular or plural prompt for shell commands 2024-08-21 15:23:09 -07:00
Paul Gauthier (aider) b8ed449806 fix: Remove unused 'os' import from editblock_coder.py 2024-08-21 15:20:37 -07:00
Paul Gauthier 377da1537d fix: Improve run_interactive_subprocess method in EditBlockCoder 2024-08-21 15:20:31 -07:00
Paul Gauthier a2cb660183 pty.spawn is not good 2024-08-21 15:12:43 -07:00
Paul Gauthier (aider) 656d224bf5 style: Fix formatting and linting issues in editblock_coder.py 2024-08-21 13:23:06 -07:00
Paul Gauthier (aider) d893b54b0a refactor: Extract shell command handling into a separate method 2024-08-21 13:23:03 -07:00
Paul Gauthier eb43a1fb43 fix: Handle empty and commented shell commands in EditBlockCoder 2024-08-21 13:23:01 -07:00
Paul Gauthier (aider) a9fe599591 style: format code using linter 2024-08-21 13:12:06 -07:00
Paul Gauthier (aider) 9706d54293 feat: Handle multi-line shell commands in EditBlockCoder 2024-08-21 13:12:02 -07:00
Paul Gauthier (aider) f7f64d6cc1 feat: Add support for alternative HEAD/DIVIDER/DIVIDER format in S/R blocks 2024-08-21 09:14:44 -07:00