mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-20 18:14:29 -07:00
refactor(cli,core): foundational layout, identity management, and type safety (#23286)
This commit is contained in:
@@ -97,7 +97,7 @@ describe('getToolGroupBorderAppearance', () => {
|
||||
});
|
||||
|
||||
it('inspects only the last pending tool_group item if current has no tools', () => {
|
||||
const item = { type: 'tool_group' as const, tools: [], id: 1 };
|
||||
const item = { type: 'tool_group' as const, tools: [], id: -1 };
|
||||
const pendingItems = [
|
||||
{
|
||||
type: 'tool_group' as const,
|
||||
@@ -158,7 +158,7 @@ describe('getToolGroupBorderAppearance', () => {
|
||||
confirmationDetails: undefined,
|
||||
} as IndividualToolCallDisplay,
|
||||
],
|
||||
id: 1,
|
||||
id: -1,
|
||||
};
|
||||
const result = getToolGroupBorderAppearance(
|
||||
item,
|
||||
@@ -187,7 +187,7 @@ describe('getToolGroupBorderAppearance', () => {
|
||||
confirmationDetails: undefined,
|
||||
} as IndividualToolCallDisplay,
|
||||
],
|
||||
id: 1,
|
||||
id: -1,
|
||||
};
|
||||
const result = getToolGroupBorderAppearance(
|
||||
item,
|
||||
@@ -276,7 +276,7 @@ describe('getToolGroupBorderAppearance', () => {
|
||||
confirmationDetails: undefined,
|
||||
} as IndividualToolCallDisplay,
|
||||
],
|
||||
id: 1,
|
||||
id: -1,
|
||||
};
|
||||
const result = getToolGroupBorderAppearance(
|
||||
item,
|
||||
@@ -292,7 +292,7 @@ describe('getToolGroupBorderAppearance', () => {
|
||||
});
|
||||
|
||||
it('handles empty tools with active shell turn (isCurrentlyInShellTurn)', () => {
|
||||
const item = { type: 'tool_group' as const, tools: [], id: 1 };
|
||||
const item = { type: 'tool_group' as const, tools: [], id: -1 };
|
||||
|
||||
// active shell turn
|
||||
const result = getToolGroupBorderAppearance(
|
||||
@@ -667,7 +667,7 @@ describe('MainContent', () => {
|
||||
pendingHistoryItems: [
|
||||
{
|
||||
type: 'tool_group',
|
||||
id: 1,
|
||||
id: -1,
|
||||
tools: [
|
||||
{
|
||||
callId: 'call_1',
|
||||
|
||||
Reference in New Issue
Block a user