feat(sessions): record interactive-only errors and warnings to chat recording JSON files (#13300)

This commit is contained in:
bl-ue
2025-11-19 09:32:13 -07:00
committed by GitHub
parent 282654e7b8
commit e1c711f5ba
14 changed files with 167 additions and 26 deletions
+5 -3
View File
@@ -147,7 +147,9 @@ const SHELL_HEIGHT_PADDING = 10;
export const AppContainer = (props: AppContainerProps) => {
const { config, initializationResult, resumedSessionData } = props;
const historyManager = useHistory();
const historyManager = useHistory({
chatRecordingService: config.getGeminiClient()?.getChatRecordingService(),
});
useMemoryMonitor(historyManager);
const settings = useSettings();
const isAlternateBuffer = useAlternateBuffer();
@@ -1026,7 +1028,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
recordExitFail(config);
}
if (ctrlCPressCount > 1) {
handleSlashCommand('/quit');
handleSlashCommand('/quit', undefined, undefined, false);
} else {
ctrlCTimerRef.current = setTimeout(() => {
setCtrlCPressCount(0);
@@ -1044,7 +1046,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
recordExitFail(config);
}
if (ctrlDPressCount > 1) {
handleSlashCommand('/quit');
handleSlashCommand('/quit', undefined, undefined, false);
} else {
ctrlDTimerRef.current = setTimeout(() => {
setCtrlDPressCount(0);