Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(ui): place attachment before voice control (#1167)

Call White9de412fe10d3
diff --git a/ui/src/components/workbench/Composer.tsx b/ui/src/components/workbench/Composer.tsx
index aba3d4ba2..ce7540940 100644
--- a/ui/src/components/workbench/Composer.tsx
+++ b/ui/src/components/workbench/Composer.tsx
@@ -1081,9 +1081,9 @@ export const Composer = forwardRef<ComposerHandle, ComposerProps>(function Compo
mediaEnabled ? 'pl-1.5' : 'pl-3.5',
)}
>
- {/* Voice owns the first control slot so starting, finishing, processing,
- retrying, and recovering all happen at the same left edge. Once a
- voice flow starts, unrelated attachment controls withdraw. */}
+ {/* Attach stays in the first idle slot and voice starts in the second.
+ Once a voice flow starts, the unrelated attachment control withdraws
+ and the active voice action takes the left edge. */}
{mediaEnabled && (
<div className="flex items-end">
<input
@@ -1097,6 +1097,21 @@ export const Composer = forwardRef<ComposerHandle, ComposerProps>(function Compo
e.target.value = '';
}}
/>
+ {!voiceFlowActive && (
+ /* Attach uses a generic plus rather than a paperclip so it reads
+ as the general "add anything" entry point. */
+ <Button
+ type="button"
+ variant="ghost"
+ size="icon"
+ onClick={() => fileInputRef.current?.click()}
+ disabled={disabled}
+ aria-label={t('chat.compose.attach')}
+ className="h-9 w-7 shrink-0"
+ >
+ <Plus className="size-4" />
+ </Button>
+ )}
{voiceControlMode === 'record' && (
<Button
type="button"
@@ -1174,21 +1189,6 @@ export const Composer = forwardRef<ComposerHandle, ComposerProps>(function Compo
<Copy className="size-4" />
</Button>
)}
- {!voiceFlowActive && (
- /* Attach uses a generic plus rather than a paperclip: it reads as
- "add anything" while remaining secondary to voice input. */
- <Button
- type="button"
- variant="ghost"
- size="icon"
- onClick={() => fileInputRef.current?.click()}
- disabled={disabled}
- aria-label={t('chat.compose.attach')}
- className="h-9 w-7 shrink-0"
- >
- <Plus className="size-4" />
- </Button>
- )}
{recording && (
<span
className="flex h-9 w-10 items-center justify-center text-xs tabular-nums text-muted"