mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-17 01:21:10 -07:00
feat: add click-to-focus support for interactive shell (#13341)
This commit is contained in:
@@ -419,11 +419,10 @@ describe('useShellCommandProcessor', () => {
|
||||
});
|
||||
await act(async () => await execPromise);
|
||||
|
||||
const finalHistoryItem = addItemToHistoryMock.mock.calls[1][0];
|
||||
expect(finalHistoryItem.tools[0].status).toBe(ToolCallStatus.Canceled);
|
||||
expect(finalHistoryItem.tools[0].resultDisplay).toContain(
|
||||
'Command was cancelled.',
|
||||
);
|
||||
// With the new logic, cancelled commands are not added to history by this hook
|
||||
// to avoid duplication/flickering, as they are handled by useGeminiStream.
|
||||
expect(addItemToHistoryMock).toHaveBeenCalledTimes(1);
|
||||
expect(setPendingHistoryItemMock).toHaveBeenCalledWith(null);
|
||||
expect(setShellInputFocusedMock).toHaveBeenCalledWith(false);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user