From e506b40c271da0e05a361f5299c37976a9e1f1f3 Mon Sep 17 00:00:00 2001 From: Pyush Sinha <89475668+psinha40898@users.noreply.github.com> Date: Mon, 4 Aug 2025 09:53:50 -0700 Subject: fix: /help remove flickering and respect clear shortcut (ctr+l) (#3611) Co-authored-by: Jacob Richman Co-authored-by: Allen Hutchison --- packages/cli/src/ui/components/HistoryItemDisplay.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/cli/src/ui/components') diff --git a/packages/cli/src/ui/components/HistoryItemDisplay.tsx b/packages/cli/src/ui/components/HistoryItemDisplay.tsx index eba4ea47..74615b26 100644 --- a/packages/cli/src/ui/components/HistoryItemDisplay.tsx +++ b/packages/cli/src/ui/components/HistoryItemDisplay.tsx @@ -21,6 +21,8 @@ import { ModelStatsDisplay } from './ModelStatsDisplay.js'; import { ToolStatsDisplay } from './ToolStatsDisplay.js'; import { SessionSummaryDisplay } from './SessionSummaryDisplay.js'; import { Config } from '@google/gemini-cli-core'; +import { Help } from './Help.js'; +import { SlashCommand } from '../commands/types.js'; interface HistoryItemDisplayProps { item: HistoryItem; @@ -29,6 +31,7 @@ interface HistoryItemDisplayProps { isPending: boolean; config?: Config; isFocused?: boolean; + commands?: readonly SlashCommand[]; } export const HistoryItemDisplay: React.FC = ({ @@ -37,6 +40,7 @@ export const HistoryItemDisplay: React.FC = ({ terminalWidth, isPending, config, + commands, isFocused = true, }) => ( @@ -71,6 +75,7 @@ export const HistoryItemDisplay: React.FC = ({ gcpProject={item.gcpProject} /> )} + {item.type === 'help' && commands && } {item.type === 'stats' && } {item.type === 'model_stats' && } {item.type === 'tool_stats' && } -- cgit v1.2.3