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
@@ -43,7 +43,7 @@ import {
import type { Part, PartListUnion } from '@google/genai';
import type { UseHistoryManagerReturn } from './useHistoryManager.js';
import type { SlashCommandProcessorResult } from '../types.js';
import { MessageType, StreamingState, ToolCallStatus } from '../types.js';
import { MessageType, StreamingState } from '../types.js';
import type { LoadedSettings } from '../../config/settings.js';
// --- MOCKS ---
@@ -2380,7 +2380,7 @@ describe('useGeminiStream', () => {
callId: 'client-read-123',
name: 'read_file',
description: toolExecutionMessage,
status: ToolCallStatus.Success,
status: CoreToolCallStatus.Success,
resultDisplay: toolExecutionMessage,
confirmationDetails: undefined,
},
@@ -2434,7 +2434,7 @@ describe('useGeminiStream', () => {
tools: expect.arrayContaining([
expect.objectContaining({
name: 'read_file',
status: ToolCallStatus.Success,
status: CoreToolCallStatus.Success,
}),
]),
}),