Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): edit and remove queued messages #11959

ClosedDominicVonk(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/11959/headopened View on GitHub

Showing 3 changed files with 84 additions and 8 deletions.

x
0 of 3 viewed, 3 left
26 additions and 3 deletionsapps/web/src/components/chat/MessagesTimeline.tsxModified
View file
@@ -1,4 +1,4 @@
-import { ArrowUpIcon, ClockIcon } from "lucide-react";
+import { ArrowUpIcon, ClockIcon, PencilIcon } from "lucide-react";
import { ReadOnlySourcePreview } from "../files/AttachmentFilePreview";
import { useRightPanelStore } from "~/rightPanelStore";
import {
@@ -288,6 +288,7 @@
onWorktreeSetupWorkLocally: (() => void) | null;
onOpenWorktreeSetupTerminal: ((terminalId: string) => void) | null;
onSteerQueuedMessage: (id: string) => void;
+ onEditQueuedMessage: (id: string) => void;
steerQueuedMessageShortcutLabel: string | null;
onRemoveQueuedMessage: (id: string) => void;
@@ -451,6 +452,7 @@
/** Messages sent during the running turn. They render as ghost bubbles after the live rows. */
queuedMessages?: ReadonlyArray<QueuedComposerMessage>;
onSteerQueuedMessage?: (id: string) => void;
+ onEditQueuedMessage?: (id: string) => void;
steerQueuedMessageShortcutLabel?: string | null;
onRemoveQueuedMessage?: (id: string) => void;
@@ -507,6 +509,7 @@
loadEarlier = null,
queuedMessages = EMPTY_QUEUED_MESSAGES,
onSteerQueuedMessage = NOOP_QUEUED_MESSAGE_ACTION,
+ onEditQueuedMessage = NOOP_QUEUED_MESSAGE_ACTION,
steerQueuedMessageShortcutLabel = null,