mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-23 12:30:43 -07:00
feat: allow editing queued messages with up arrow key (#10392)
Co-authored-by: Akhil Appana <akhilapp@google.com>
This commit is contained in:
@@ -21,13 +21,16 @@ export const QueuedMessageDisplay = ({
|
||||
|
||||
return (
|
||||
<Box flexDirection="column" marginTop={1}>
|
||||
<Box paddingLeft={2}>
|
||||
<Text dimColor>Queued (press ↑ to edit):</Text>
|
||||
</Box>
|
||||
{messageQueue
|
||||
.slice(0, MAX_DISPLAYED_QUEUED_MESSAGES)
|
||||
.map((message, index) => {
|
||||
const preview = message.replace(/\s+/g, ' ');
|
||||
|
||||
return (
|
||||
<Box key={index} paddingLeft={2} width="100%">
|
||||
<Box key={index} paddingLeft={4} width="100%">
|
||||
<Text dimColor wrap="truncate">
|
||||
{preview}
|
||||
</Text>
|
||||
@@ -35,7 +38,7 @@ export const QueuedMessageDisplay = ({
|
||||
);
|
||||
})}
|
||||
{messageQueue.length > MAX_DISPLAYED_QUEUED_MESSAGES && (
|
||||
<Box paddingLeft={2}>
|
||||
<Box paddingLeft={4}>
|
||||
<Text dimColor>
|
||||
... (+
|
||||
{messageQueue.length - MAX_DISPLAYED_QUEUED_MESSAGES} more)
|
||||
|
||||
Reference in New Issue
Block a user