diff options
| author | Taylor Mullen <[email protected]> | 2025-05-25 14:41:37 -0700 |
|---|---|---|
| committer | N. Taylor Mullen <[email protected]> | 2025-05-25 14:45:47 -0700 |
| commit | 5097b5a6563a4d514242580495c5974b7e665c3f (patch) | |
| tree | c9d99b33a87ae4a90dabf13d044ce738f45127da /packages/cli/src/ui/hooks/useToolScheduler.ts | |
| parent | 1a5fe16b22dbb13861bd3aa97c8ae5f40566b6af (diff) | |
Fix(write-file): Correct over-escaping and improve content generation
- Leveraged existing edit correction technology from `edit.ts` to address over-escaping issues in `write-file.ts`.
- Introduced `ensureCorrectFileContent` for correcting content in new files, where a simple "replace" isnt applicable. This uses a new LLM prompt tailored for correcting potentially problematic string escaping.
- Added caching for `ensureCorrectFileContent` to optimize performance.
- Refactored `write-file.ts` to integrate these corrections, improving the reliability of file content generation and modification.
Part of https://github.com/google-gemini/gemini-cli/issues/484
Diffstat (limited to 'packages/cli/src/ui/hooks/useToolScheduler.ts')
0 files changed, 0 insertions, 0 deletions
