mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-15 15:50:35 -07:00
refactor: improve large text paste placeholder (#17269)
Co-authored-by: Jack Wotherspoon <jackwoth@google.com>
This commit is contained in:
@@ -177,7 +177,6 @@ describe('InputPrompt', () => {
|
||||
transformationsByLine: [],
|
||||
getOffset: vi.fn().mockReturnValue(0),
|
||||
pastedContent: {},
|
||||
addPastedContent: vi.fn().mockReturnValue('[Pasted Text: 6 lines]'),
|
||||
} as unknown as TextBuffer;
|
||||
|
||||
mockShellHistory = {
|
||||
@@ -1825,6 +1824,7 @@ describe('InputPrompt', () => {
|
||||
|
||||
afterEach(() => {
|
||||
vi.useRealTimers();
|
||||
vi.restoreAllMocks();
|
||||
});
|
||||
|
||||
it('should prevent auto-submission immediately after an unsafe paste', async () => {
|
||||
|
||||
Reference in New Issue
Block a user