Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions packages/cli/src/ui/AppContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
type HistoryItemWithoutId,
AuthState,
} from './types.js';
import { MessageType } from './types.js';
import { MessageType, StreamingState } from './types.js';
import {
type EditorType,
type Config,
Expand Down Expand Up @@ -699,7 +699,20 @@ Logging in with Google... Please restart Gemini CLI to continue.

const { handleInput: vimHandleInput } = useVim(buffer, handleFinalSubmit);

const isInputActive = !initError && !isProcessing;
/**
* Determines if the input prompt should be active and accept user input.
* Input is disabled during:
* - Initialization errors
* - Slash command processing
* - Tool confirmations (WaitingForConfirmation state)
* - Any future streaming states not explicitly allowed
*/
const isInputActive =
!initError &&
!isProcessing &&
(streamingState === StreamingState.Idle ||
streamingState === StreamingState.Responding) &&
!isProQuotaDialogOpen;

// Compute available terminal height based on controls measurement
const availableTerminalHeight = useMemo(() => {
Expand Down
Loading