mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
feat: Add exit UI w/ stats (#924)
This commit is contained in:
parent
4160d904da
commit
7a72d255d8
13 changed files with 522 additions and 88 deletions
|
|
@ -16,6 +16,7 @@ import { GeminiMessageContent } from './messages/GeminiMessageContent.js';
|
|||
import { Box } from 'ink';
|
||||
import { AboutBox } from './AboutBox.js';
|
||||
import { StatsDisplay } from './StatsDisplay.js';
|
||||
import { SessionSummaryDisplay } from './SessionSummaryDisplay.js';
|
||||
import { Config } from '@gemini-cli/core';
|
||||
|
||||
interface HistoryItemDisplayProps {
|
||||
|
|
@ -66,6 +67,9 @@ export const HistoryItemDisplay: React.FC<HistoryItemDisplayProps> = ({
|
|||
duration={item.duration}
|
||||
/>
|
||||
)}
|
||||
{item.type === 'quit' && (
|
||||
<SessionSummaryDisplay stats={item.stats} duration={item.duration} />
|
||||
)}
|
||||
{item.type === 'tool_group' && (
|
||||
<ToolGroupMessage
|
||||
toolCalls={item.tools}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue