Implement background process monitoring and inspection tools (#23799)

This commit is contained in:
Coco Sheng
2026-04-02 11:01:00 -04:00
committed by GitHub
parent 18e20c8650
commit daddac16e3
13 changed files with 1181 additions and 12 deletions
+10 -2
View File
@@ -416,7 +416,11 @@ describe('ShellTool', () => {
// Advance time to trigger the background timeout
await vi.advanceTimersByTimeAsync(250);
expect(mockShellBackground).toHaveBeenCalledWith(12345);
expect(mockShellBackground).toHaveBeenCalledWith(
12345,
'default',
'sleep 10',
);
await promise;
});
@@ -656,7 +660,11 @@ describe('ShellTool', () => {
// Advance time to trigger the background timeout
await vi.advanceTimersByTimeAsync(250);
expect(mockShellBackground).toHaveBeenCalledWith(12345);
expect(mockShellBackground).toHaveBeenCalledWith(
12345,
'default',
'sleep 10',
);
await promise;
});