mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 22:14:52 -07:00
refactor: use CoreToolCallStatus in the the history data model (#19033)
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
import { renderWithProviders } from '../../../test-utils/render.js';
|
||||
import { describe, it, expect, vi, afterEach } from 'vitest';
|
||||
import { ToolGroupMessage } from './ToolGroupMessage.js';
|
||||
import { ToolCallStatus } from '../../types.js';
|
||||
import {
|
||||
ScrollableList,
|
||||
type ScrollableListRef,
|
||||
@@ -16,6 +15,7 @@ import { Box, Text } from 'ink';
|
||||
import { act, useRef, useEffect } from 'react';
|
||||
import { waitFor } from '../../../test-utils/async.js';
|
||||
import { SHELL_COMMAND_NAME } from '../../constants.js';
|
||||
import { CoreToolCallStatus } from '@google/gemini-cli-core';
|
||||
|
||||
// Mock child components that might be complex
|
||||
vi.mock('../TerminalOutput.js', () => ({
|
||||
@@ -51,7 +51,7 @@ describe('ToolMessage Sticky Header Regression', () => {
|
||||
{ length: 10 },
|
||||
(_, i) => `${resultPrefix}-${String(i + 1).padStart(2, '0')}`,
|
||||
).join('\n'),
|
||||
status: ToolCallStatus.Success,
|
||||
status: CoreToolCallStatus.Success,
|
||||
confirmationDetails: undefined,
|
||||
renderOutputAsMarkdown: false,
|
||||
});
|
||||
@@ -144,7 +144,7 @@ describe('ToolMessage Sticky Header Regression', () => {
|
||||
const toolCalls = [
|
||||
{
|
||||
...createToolCall('1', SHELL_COMMAND_NAME, 'shell'),
|
||||
status: ToolCallStatus.Success,
|
||||
status: CoreToolCallStatus.Success,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user