fix: send keyboard shortcut should queue when attempt is running (#726)

* fix: send keyboard shortcut should queue when attempt is running

* Fix diff follow-up content requirement
This commit is contained in:
Alex Netsch
2025-09-15 21:01:30 +02:00
committed by GitHub
parent ecf72bd8b1
commit 80f5947fc7

View File

@@ -887,7 +887,11 @@ export function TaskFollowUpSection({
if ((e.metaKey || e.ctrlKey) && e.key === 'Enter') {
e.preventDefault();
if (canSendFollowUp && !isSendingFollowUp) {
onSendFollowUp();
if (isAttemptRunning) {
onQueue(); // Use queue when something is running
} else {
onSendFollowUp(); // Direct send when nothing is running
}
}
} else if (e.key === 'Escape') {
// Clear input and auto-cancel queue
@@ -1101,7 +1105,6 @@ export function TaskFollowUpSection({
!canSendFollowUp ||
isDraftLocked ||
!isDraftReady ||
!followUpMessage.trim() ||
isSendingFollowUp
}
size="sm"
@@ -1242,7 +1245,6 @@ export function TaskFollowUpSection({
? isUnqueuing
: !canSendFollowUp ||
!isDraftReady ||
!followUpMessage.trim() ||
isQueuing ||
isUnqueuing ||
isDraftSending