mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-12 15:10:59 -07:00
refactor(cli): remove unused isFirst prop from DenseToolMessage
This commit is contained in:
@@ -18,7 +18,6 @@ describe('DenseToolMessage', () => {
|
||||
status: ToolCallStatus.Success,
|
||||
resultDisplay: 'Success result',
|
||||
confirmationDetails: undefined,
|
||||
isFirst: true,
|
||||
};
|
||||
|
||||
it('renders correctly for a successful string result', () => {
|
||||
|
||||
@@ -11,9 +11,7 @@ import type { IndividualToolCallDisplay } from '../../types.js';
|
||||
import { ToolStatusIndicator } from './ToolShared.js';
|
||||
import { theme } from '../../semantic-colors.js';
|
||||
|
||||
interface DenseToolMessageProps extends IndividualToolCallDisplay {
|
||||
isFirst: boolean;
|
||||
}
|
||||
type DenseToolMessageProps = IndividualToolCallDisplay;
|
||||
|
||||
interface FileDiffResult {
|
||||
fileDiff: string;
|
||||
|
||||
@@ -191,9 +191,7 @@ export const ToolGroupMessage: React.FC<ToolGroupMessageProps> = ({
|
||||
tool.status !== ToolCallStatus.Confirming;
|
||||
|
||||
if (useDenseView) {
|
||||
return (
|
||||
<DenseToolMessage key={tool.callId} {...tool} isFirst={isFirst} />
|
||||
);
|
||||
return <DenseToolMessage key={tool.callId} {...tool} />;
|
||||
}
|
||||
|
||||
const commonProps = {
|
||||
|
||||
Reference in New Issue
Block a user