diff options
| author | christine betts <[email protected]> | 2025-07-25 14:50:34 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-25 14:50:34 +0000 |
| commit | 1d3ad9d0758a94e42fa88d20618d164fe1140f11 (patch) | |
| tree | f79f668858cb32e62a7ff96e3d1993ab341a3b3c /packages/cli/src/ui/App.tsx | |
| parent | 5d4b02ca85e2e6427b68f27a01659a9f0db66d74 (diff) | |
Add drawer for active files in IDE mode (#4682)
Co-authored-by: Shreya <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/App.tsx')
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 566d6bd5..bd99f01b 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -46,6 +46,7 @@ import { registerCleanup } from '../utils/cleanup.js'; import { DetailedMessagesDisplay } from './components/DetailedMessagesDisplay.js'; import { HistoryItemDisplay } from './components/HistoryItemDisplay.js'; import { ContextSummaryDisplay } from './components/ContextSummaryDisplay.js'; +import { IDEContextDetailDisplay } from './components/IDEContextDetailDisplay.js'; import { useHistory } from './hooks/useHistoryManager.js'; import process from 'node:process'; import { @@ -148,6 +149,8 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { const [showErrorDetails, setShowErrorDetails] = useState<boolean>(false); const [showToolDescriptions, setShowToolDescriptions] = useState<boolean>(false); + const [showIDEContextDetail, setShowIDEContextDetail] = + useState<boolean>(false); const [ctrlCPressedOnce, setCtrlCPressedOnce] = useState(false); const [quittingMessages, setQuittingMessages] = useState< HistoryItem[] | null @@ -465,6 +468,8 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { if (Object.keys(mcpServers || {}).length > 0) { handleSlashCommand(newValue ? '/mcp desc' : '/mcp nodesc'); } + } else if (key.ctrl && input === 'e' && ideContext) { + setShowIDEContextDetail((prev) => !prev); } else if (key.ctrl && (input === 'c' || input === 'C')) { handleExit(ctrlCPressedOnce, setCtrlCPressedOnce, ctrlCTimerRef); } else if (key.ctrl && (input === 'd' || input === 'D')) { @@ -861,6 +866,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { } elapsedTime={elapsedTime} /> + <Box marginTop={1} display="flex" @@ -900,7 +906,9 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { {shellModeActive && <ShellModeIndicator />} </Box> </Box> - + {showIDEContextDetail && ( + <IDEContextDetailDisplay openFiles={openFiles} /> + )} {showErrorDetails && ( <OverflowProvider> <Box flexDirection="column"> |
