mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 14:04:41 -07:00
fix(async): prevent missed async errors from bypassing catch handlers (#13714)
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
This commit is contained in:
@@ -966,7 +966,7 @@ A good instruction should concisely answer:
|
||||
getFilePath: (params: EditToolParams) => params.file_path,
|
||||
getCurrentContent: async (params: EditToolParams): Promise<string> => {
|
||||
try {
|
||||
return this.config
|
||||
return await this.config
|
||||
.getFileSystemService()
|
||||
.readTextFile(params.file_path);
|
||||
} catch (err) {
|
||||
|
||||
@@ -307,7 +307,7 @@ ${textContent}
|
||||
this.config,
|
||||
new WebFetchFallbackAttemptEvent('primary_failed'),
|
||||
);
|
||||
return this.executeFallback(signal);
|
||||
return await this.executeFallback(signal);
|
||||
}
|
||||
|
||||
const sourceListFormatted: string[] = [];
|
||||
|
||||
Reference in New Issue
Block a user