mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-20 19:11:23 -07:00
feat(sessions): record interactive-only errors and warnings to chat recording JSON files (#13300)
This commit is contained in:
@@ -311,6 +311,7 @@ export const useSlashCommandProcessor = (
|
||||
rawQuery: PartListUnion,
|
||||
oneTimeShellAllowlist?: Set<string>,
|
||||
overwriteConfirmed?: boolean,
|
||||
addToHistory: boolean = true,
|
||||
): Promise<SlashCommandProcessorResult | false> => {
|
||||
if (!commands) {
|
||||
return false;
|
||||
@@ -326,8 +327,13 @@ export const useSlashCommandProcessor = (
|
||||
|
||||
setIsProcessing(true);
|
||||
|
||||
const userMessageTimestamp = Date.now();
|
||||
addItem({ type: MessageType.USER, text: trimmed }, userMessageTimestamp);
|
||||
if (addToHistory) {
|
||||
const userMessageTimestamp = Date.now();
|
||||
addItem(
|
||||
{ type: MessageType.USER, text: trimmed },
|
||||
userMessageTimestamp,
|
||||
);
|
||||
}
|
||||
|
||||
let hasError = false;
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user