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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user