feat: allow editing queued messages with up arrow key (#10392)

Co-authored-by: Akhil Appana <akhilapp@google.com>
This commit is contained in:
Akhil Appana
2025-10-16 17:04:13 -07:00
committed by GitHub
parent 9049f8f8ae
commit 22f725eb08
9 changed files with 399 additions and 8 deletions
+13 -6
View File
@@ -621,12 +621,17 @@ Logging in with Google... Please restart Gemini CLI to continue.
onApprovalModeChange: handleApprovalModeChange,
});
const { messageQueue, addMessage, clearQueue, getQueuedMessagesText } =
useMessageQueue({
isConfigInitialized,
streamingState,
submitQuery,
});
const {
messageQueue,
addMessage,
clearQueue,
getQueuedMessagesText,
popAllMessages,
} = useMessageQueue({
isConfigInitialized,
streamingState,
submitQuery,
});
cancelHandlerRef.current = useCallback(() => {
const pendingHistoryItems = [
@@ -1306,6 +1311,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
onWorkspaceMigrationDialogClose,
handleProQuotaChoice,
setQueueErrorMessage,
popAllMessages,
}),
[
handleThemeSelect,
@@ -1332,6 +1338,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
onWorkspaceMigrationDialogClose,
handleProQuotaChoice,
setQueueErrorMessage,
popAllMessages,
],
);