diff --git a/src/components/ai-elements/prompt-input.tsx b/src/components/ai-elements/prompt-input.tsx index 508d75d6..45ff759e 100644 --- a/src/components/ai-elements/prompt-input.tsx +++ b/src/components/ai-elements/prompt-input.tsx @@ -1,18 +1,17 @@ import { Brain, ClipboardCheck, - CornerUpLeft, FileText, FolderOpen, GitPullRequest, Globe2, Info, - OctagonX, Paperclip, Pencil, Send, SlidersHorizontal, Sparkles, + Square, Trash2, UserRound, X, @@ -749,17 +748,6 @@ export function PromptInput(args: PromptInputProps) { const primaryActionDisabled = Boolean(disabled || !hasDraftPayload); const isQueueNextMode = submitMode === "queue-next"; const isSteerOrQueueMode = submitMode === "steer-or-queue"; - const steerQueueSecondaryAction = tabActionForSteerQueueEnterAction( - steerQueueEnterAction, - ); - const steerQueueSecondaryLabel = - steerQueueSecondaryAction === "steer" - ? "Adjust current work" - : "Queue next"; - const steerQueueSecondaryDescription = - steerQueueSecondaryAction === "steer" - ? "Steer this message into the live turn" - : "Queue this message for after the current turn finishes"; const modifierLabel = useMemo( () => typeof navigator !== "undefined" && @@ -1749,7 +1737,7 @@ export function PromptInput(args: PromptInputProps) { ) : null} {visibleQueuedTurns.length > 0 ? ( -
+
{isEditing ? (
@@ -1854,7 +1845,7 @@ export function PromptInput(args: PromptInputProps) {
) : (
- + {index + 1}
@@ -1862,32 +1853,37 @@ export function PromptInput(args: PromptInputProps) { {summary}

{index === 0 ? ( -

+

Next to send

) : null}
- - +
+ + +
)}
@@ -1917,54 +1913,6 @@ export function PromptInput(args: PromptInputProps) { ) : null}
- {isSteerOrQueueMode && !minimal ? ( -
- - { - void submitCurrentMessage( - steerQueueSecondaryAction, - ); - }} - className={tooltipTriggerButtonClassName({ - className: cn( - PROMPT_TOOLBAR_BUTTON, - PROMPT_FLOATING_SURFACE, - "h-7 gap-1.5 px-2.5 text-xs shadow-sm", - steerQueueSecondaryAction === "steer" && - "text-primary hover:text-primary", - primaryActionDisabled && - "cursor-not-allowed opacity-60", - ), - })} - aria-label={steerQueueSecondaryLabel} - > - {steerQueueSecondaryAction === "steer" ? ( - - ) : ( - - )} - {steerQueueSecondaryLabel} - - - {steerQueueSecondaryDescription} - - Tab - - - -
- ) : null} {shouldShowFocusHint ? (
Attach files - {isTurnActive ? ( + {isTurnActive && !hasDraftPayload ? ( onAbort?.()} > - + + + + + Stop responding + + Esc + + + + + ) : ( + + + - - Stop responding Esc - - - Pending approvals expire; your draft is preserved. + + {isSteerOrQueueMode + ? steerQueueEnterAction === "steer" + ? "Steer" + : "Queue" + : isQueueNextMode + ? "Queue next turn" + : "Send"} + + + - - - ) : null} - - - - {isQueueNextMode ? ( - Queue next - ) : null} - - - {isSteerOrQueueMode ? ( - <> - - Steer this turn now - - - {steerQueueEnterAction === "steer" ? "↵" : "Tab"} - - - + {isSteerOrQueueMode ? ( - Queue for after it finishes + {steerQueueEnterAction === "steer" ? "Queue" : "Steer"} - - {steerQueueEnterAction === "steer" ? "Tab" : "↵"} - + Tab - - ) : ( - <> - - {isQueueNextMode ? "Queue the next turn" : "Send message"} - - - - - - )} - - + ) : null} + + + )}