fix(auto-generated-guard): corrected file not found handling in marker detection

- Fixed file not found error handling in auto-generated marker detection to gracefully return undefined instead of propagating errors.
- Made assertEditableFileContent function synchronous to simplify API and improve error handling consistency.
- Updated test assertions to match synchronous function behavior using toThrow instead of rejects patterns.
- Removed obsolete test case for doc comment preservation during replace operations.
This commit is contained in:
can1357
2026-04-08 15:01:39 +02:00
parent 4ca9bd9c78
commit 3f4384f6b1
7 changed files with 54 additions and 57 deletions
+2
View File
@@ -1,8 +1,10 @@
# Changelog
## [Unreleased]
### Changed
- Improved auto-generated file detection to gracefully handle ENOENT errors when peeking file content, preventing unnecessary abort failures
- Optimized context emission by skipping message cloning when no extensions have context handlers
- Improved message cloning resilience by falling back to shallow array clone when structured cloning fails due to non-cloneable objects
- Made `assertEditableFileContent` synchronous instead of async for improved performance in streaming edit checks