Resolves the confusing error message `ripgrep exited with code null that occurs when a search operation is cancelled or aborted (#14267)

Co-authored-by: Gal Zahavi <38544478+galz10@users.noreply.github.com>
This commit is contained in:
Maxim Masiutin
2026-01-25 21:02:37 +02:00
committed by GitHub
parent fd36d65723
commit 4d197c992d
2 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -1009,10 +1009,10 @@ describe('RipGrepTool', () => {
const result = await invocation.execute(controller.signal);
expect(result.llmContent).toContain(
'Error during grep search operation: ripgrep exited with code null',
'Error during grep search operation: ripgrep was terminated by signal:',
);
expect(result.returnDisplay).toContain(
'Error: ripgrep exited with code null',
'Error: ripgrep was terminated by signal:',
);
});
});