(
+
+ {KEYBAR_KEYS.map((key) => {
+ const isActive = key.id === 'command'
+ ? showSuggestions
+ : key.id === 'mention'
+ ? showMentionSuggestions
+ : isBashMode
+ const isDisabled = key.id === 'bash' ? !isBashKeyEnabled : isBashMode
+ return (
+
+ )
+ })}
+
+ )
+
@@ -1501,30 +1536,47 @@ return (
{composerModeStyle.label}
)}
-
+
+
+ {(hasPendingPermissionForSession || hasPromptContent) && (
+
+ )}
+
{imageAttachments.length > 0 && (
@@ -1546,14 +1598,14 @@ return (
)}
-
+
- {showMobileScrollButton ? (
+ {showMobileKeys ? renderMobileKeys() : showMobileScrollButton ? (
<>
-
+
{!isMobile && (
- {showMobileVoiceButton && (
+ {canUseMobileVoice && (
renderVoiceButton('mobile')
)}
{isMobile && directory && (
@@ -1655,63 +1705,15 @@ return (
goalLabel={goalButtonLabel}
onToggleGoal={toggleGoalArmed}
onAttachFile={openFilePicker}
- onDictate={canUseMobileVoice && hasPromptContent && !showVoiceFeedback ? () => void startVoiceRecording() : undefined}
+ compact={compactControls}
/>
)}
{!isMobile && sttEnabled && sttSupported && (
renderVoiceButton('desktop')
)}
- {!showMobileVoiceButton && (
- setShowDialog(true) : handleSubmit}
- disabled={hasPendingPermissionForSession ? false : (!isModelReady || !hasPromptContent || (isPromptSubmitPending && !isStreamingResponse))}
- className={`px-4 md:px-5 py-1.5 md:py-2 rounded-lg text-sm font-medium transition-colors dark:border flex-shrink-0 min-w-[52px] flex items-center justify-center min-h-[44px] md:min-h-0 ${
- hasPendingPermissionForSession
- ? 'bg-highlight hover:bg-highlight/90 border-highlight text-highlight-foreground ring-highlight/20'
- : 'bg-primary hover:bg-primary/90 disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed text-primary-foreground border-border/30'
- }`}
- title={hasPendingPermissionForSession ? 'View pending permission' : (isStreamingResponse ? 'Queue message' : 'Send')}
- >
- {hasPendingPermissionForSession ? 'View' : (isStreamingResponse ? 'Queue' : 'Send')}
-
- )}
- {isMobile && isPromptFocused && !hasPendingPermissionForSession && (
-
- {KEYBAR_KEYS.map((key) => {
- const isActive = key.id === 'command'
- ? showSuggestions
- : key.id === 'mention'
- ? showMentionSuggestions
- : isBashMode
- const isDisabled = key.id === 'bash' ? !isBashKeyEnabled : isBashMode
- return (
- e.preventDefault()}
- onTouchStart={keybarTouch.onTouchStart}
- onTouchMove={keybarTouch.onTouchMove}
- onTouchEnd={(e) => keybarTouch.onTouchEnd(e, key.id)}
- onClick={() => keybarTouch.onClick(key.id)}
- className={`flex items-center gap-1 min-h-[44px] px-3 rounded-lg border font-mono text-base font-bold transition-colors disabled:opacity-30 ${
- isActive ? COMPOSER_MODE_STYLES[key.id].key : 'bg-muted border-border text-foreground active:bg-muted-foreground/20'
- }`}
- >
- {key.symbol}
- {key.label}
-
- )
- })}
-
- )}
-