refactor: use CoreToolCallStatus in the the history data model (#19033)

This commit is contained in:
Jerop Kipruto
2026-02-13 17:20:14 -05:00
committed by GitHub
parent e7e4c68c5c
commit f87468c644
40 changed files with 322 additions and 268 deletions

View File

@@ -8,7 +8,7 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { renderHook } from '../../test-utils/render.js';
import { useTurnActivityMonitor } from './useTurnActivityMonitor.js';
import { StreamingState } from '../types.js';
import { hasRedirection } from '@google/gemini-cli-core';
import { hasRedirection, CoreToolCallStatus } from '@google/gemini-cli-core';
import { type TrackedToolCall } from './useToolScheduler.js';
vi.mock('@google/gemini-cli-core', async (importOriginal) => {
@@ -93,7 +93,7 @@ describe('useTurnActivityMonitor', () => {
name: 'run_shell_command',
args: { command: 'ls -la' },
},
status: 'executing',
status: CoreToolCallStatus.Executing,
} as unknown as TrackedToolCall,
],
});
@@ -108,7 +108,7 @@ describe('useTurnActivityMonitor', () => {
name: 'run_shell_command',
args: { command: 'ls > tool_out.txt' },
},
status: 'executing',
status: CoreToolCallStatus.Executing,
} as unknown as TrackedToolCall,
],
});