summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/App.tsx
diff options
context:
space:
mode:
authorShreya Keshive <[email protected]>2025-08-08 17:26:11 -0400
committerGitHub <[email protected]>2025-08-08 21:26:11 +0000
commit344ee29f7713b6a249e510674c7410d0fb8ec2f8 (patch)
treef3fecb7d55696f36e0768869d3bf46fc4aee5a80 /packages/cli/src/ui/App.tsx
parent60bde58f29815edba365daf04c07080e8d1b24d8 (diff)
Use slash command instead of context drawer to display open files in editor to reduce flickering in the UI (#5858)
Diffstat (limited to 'packages/cli/src/ui/App.tsx')
-rw-r--r--packages/cli/src/ui/App.tsx15
1 files changed, 3 insertions, 12 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx
index 9550faa2..9f18fe55 100644
--- a/packages/cli/src/ui/App.tsx
+++ b/packages/cli/src/ui/App.tsx
@@ -48,7 +48,6 @@ 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 {
@@ -174,8 +173,7 @@ 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
@@ -640,7 +638,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => {
config.getIdeMode() &&
ideContextState
) {
- setShowIDEContextDetail((prev) => !prev);
+ handleSlashCommand('/ide status');
} else if (key.ctrl && (input === 'c' || input === 'C')) {
if (isAuthenticating) {
// Let AuthInProgress component handle the input.
@@ -1040,14 +1038,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => {
{shellModeActive && <ShellModeIndicator />}
</Box>
</Box>
- {showIDEContextDetail && (
- <IDEContextDetailDisplay
- ideContext={ideContextState}
- detectedIdeDisplay={config
- .getIdeClient()
- .getDetectedIdeDisplayName()}
- />
- )}
+
{showErrorDetails && (
<OverflowProvider>
<Box flexDirection="column">