Added session ID to resume tip in exit footer

This commit is contained in:
Dev Randalpura
2026-03-02 14:32:26 -05:00
parent 703759cfae
commit 5c9964e44a
2 changed files with 15 additions and 8 deletions

View File

@@ -6,6 +6,7 @@
import type React from 'react';
import { StatsDisplay } from './StatsDisplay.js';
import { useSessionStats } from '../contexts/SessionContext.js';
interface SessionSummaryDisplayProps {
duration: string;
@@ -13,10 +14,15 @@ interface SessionSummaryDisplayProps {
export const SessionSummaryDisplay: React.FC<SessionSummaryDisplayProps> = ({
duration,
}) => (
<StatsDisplay
title="Agent powering down. Goodbye!"
duration={duration}
footer="Tip: Resume a previous session using gemini --resume or /resume"
/>
);
}) => {
const { stats } = useSessionStats();
const footer = `To resume this session, run:\n gemini --resume ${stats.sessionId}`;
return (
<StatsDisplay
title="Agent powering down. Goodbye!"
duration={duration}
footer={footer}
/>
);
};

View File

@@ -24,7 +24,8 @@ exports[`<SessionSummaryDisplay /> > renders the summary display with a title 1`
│ │
│ Savings Highlight: 500 (50.0%) of input tokens were served from the cache, reducing costs. │
│ │
│ Tip: Resume a previous session using gemini --resume or /resume
│ To resume this session, run:
│ gemini --resume test-session │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
"
`;