mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-17 01:21:10 -07:00
Fix bug where users are unable to re-enter disconnected terminals. (#8765)
This commit is contained in:
11
packages/cli/src/ui/contexts/ShellFocusContext.tsx
Normal file
11
packages/cli/src/ui/contexts/ShellFocusContext.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { createContext, useContext } from 'react';
|
||||
|
||||
export const ShellFocusContext = createContext<boolean>(true);
|
||||
|
||||
export const useShellFocusState = () => useContext(ShellFocusContext);
|
||||
Reference in New Issue
Block a user