Skip to content

Commit 616dd4f

Browse files
committed
🤖 fix: enable queued messages during compaction
- Remove isCompacting check from textarea disabled condition - Remove isCompacting check from handleSend early return - Update placeholder to show queuing capability during compaction Users can now type and queue messages while compaction is running. Messages are automatically queued by backend and sent after compaction completes. _Generated with `mux`_
1 parent 61dd396 commit 616dd4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/browser/components/ChatInput/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export const ChatInput: React.FC<ChatInputProps> = (props) => {
449449

450450
const handleSend = async () => {
451451
// Allow sending if there's text or images
452-
if ((!input.trim() && imageAttachments.length === 0) || disabled || isSending || isCompacting) {
452+
if ((!input.trim() && imageAttachments.length === 0) || disabled || isSending) {
453453
return;
454454
}
455455

@@ -849,7 +849,7 @@ export const ChatInput: React.FC<ChatInputProps> = (props) => {
849849
const interruptKeybind = vimEnabled
850850
? KEYBINDS.INTERRUPT_STREAM_VIM
851851
: KEYBINDS.INTERRUPT_STREAM_NORMAL;
852-
return `Compacting... (${formatKeybind(interruptKeybind)} cancel | ${formatKeybind(KEYBINDS.ACCEPT_EARLY_COMPACTION)} accept early)`;
852+
return `Compacting... (${formatKeybind(interruptKeybind)} cancel | ${formatKeybind(KEYBINDS.ACCEPT_EARLY_COMPACTION)} accept early | ${formatKeybind(KEYBINDS.SEND_MESSAGE)} to queue)`;
853853
}
854854

855855
// Build hints for normal input
@@ -924,7 +924,7 @@ export const ChatInput: React.FC<ChatInputProps> = (props) => {
924924
onDrop={variant === "workspace" ? handleDrop : undefined}
925925
suppressKeys={showCommandSuggestions ? COMMAND_SUGGESTION_KEYS : undefined}
926926
placeholder={placeholder}
927-
disabled={!editingMessage && (disabled || isSending || isCompacting)}
927+
disabled={!editingMessage && (disabled || isSending)}
928928
aria-label={editingMessage ? "Edit your last message" : "Message Claude"}
929929
aria-autocomplete="list"
930930
aria-controls={

0 commit comments

Comments
 (0)