Handle stdin for prompts using readline for escape character parsing (#1972)

This commit is contained in:
Billy Biggs 2025-06-27 10:57:32 -07:00 committed by GitHub
parent 5fd6664c4b
commit 4fbffdf617
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 352 additions and 86 deletions

View file

@ -63,6 +63,7 @@ import {
useSessionStats,
} from './contexts/SessionContext.js';
import { useGitBranchName } from './hooks/useGitBranchName.js';
import { useBracketedPaste } from './hooks/useBracketedPaste.js';
import { useTextBuffer } from './components/shared/text-buffer.js';
import * as fs from 'fs';
import { UpdateNotification } from './components/UpdateNotification.js';
@ -86,6 +87,7 @@ export const AppWrapper = (props: AppProps) => (
);
const App = ({ config, settings, startupWarnings = [] }: AppProps) => {
useBracketedPaste();
const [updateMessage, setUpdateMessage] = useState<string | null>(null);
const { stdout } = useStdout();