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(chat): soften background activity status (#910)

Call White2a82bde409f2
diff --git a/ui/src/components/visual/StatusPill.tsx b/ui/src/components/visual/StatusPill.tsx
index 2f85a6cb6..8770a3f47 100644
--- a/ui/src/components/visual/StatusPill.tsx
+++ b/ui/src/components/visual/StatusPill.tsx
@@ -5,7 +5,8 @@ type Tone = 'running' | 'stopped' | 'warning' | 'idle';
interface StatusPillProps extends React.HTMLAttributes<HTMLSpanElement> {
tone?: Tone;
- label: string;
+ label: React.ReactNode;
+ indicator?: React.ReactNode;
}
const TONE_CLASSES: Record<Tone, { wrapper: string; dot: string }> = {
@@ -15,7 +16,7 @@ const TONE_CLASSES: Record<Tone, { wrapper: string; dot: string }> = {
idle: { wrapper: 'border-border bg-surface text-muted', dot: 'bg-muted' },
};
-export const StatusPill: React.FC<StatusPillProps> = ({ tone = 'idle', label, className, ...props }) => {
+export const StatusPill: React.FC<StatusPillProps> = ({ tone = 'idle', label, indicator, className, ...props }) => {
const tones = TONE_CLASSES[tone];
return (
<span
@@ -26,7 +27,7 @@ export const StatusPill: React.FC<StatusPillProps> = ({ tone = 'idle', label, cl
)}
{...props}
>
- <span className={cn('h-2 w-2 rounded-full', tones.dot)} />
+ {indicator ?? <span className={cn('h-2 w-2 rounded-full', tones.dot)} />}
{label}
</span>
);
diff --git a/ui/src/components/workbench/ChatPage.tsx b/ui/src/components/workbench/ChatPage.tsx
index 96c7195c3..a15819aa1 100644
--- a/ui/src/components/workbench/ChatPage.tsx
+++ b/ui/src/components/workbench/ChatPage.tsx
@@ -31,6 +31,7 @@ import { FileViewerProvider } from '../ui/file-viewer';
import { Input } from '../ui/input';
import { Markdown } from '../ui/markdown';
import { VaultApprovalFloat, VaultChatRequests } from '../ui/vault-chat-requests';
+import { StatusPill } from '../visual';
import { usePendingVaultRequests } from '../../lib/usePendingVaultRequests';
import { Composer, type ComposerAttachment, type ComposerHandle, type ComposerProps } from './Composer';
import type { MentionReference } from '../../lib/mentions';
@@ -1636,20 +1637,36 @@ const ActivityStrip: React.FC<{ state: SessionRuntimeState }> = ({ state }) => {
active.length > 0 &&
(state.connection === 'reconnecting' || state.connection === 'disconnected');
return (
- <div className="shrink-0 border-t border-border/70 bg-surface-2/60 px-4 py-1.5 md:px-8">
- <div className="mx-auto flex min-h-7 w-full max-w-[1080px] items-center gap-2 text-[11px] text-muted">
- <Activity className="size-3.5 shrink-0 text-mint" aria-hidden="true" />
- <span className="min-w-0 truncate" title={firstDescription ?? undefined}>
- {active.length > 0
- ? t('chat.activities.running', { count: active.length })
- : t('chat.activities.delivering', { count: pendingOutputs })}
- {firstDescription ? ` · ${firstDescription}` : ''}
- </span>
- {connectionVisible ? (
- <span className="ml-auto shrink-0 text-gold">
- {t(`chat.activities.connection.${state.connection}`)}
- </span>
- ) : null}
+ <div className="shrink-0 px-4 py-2 md:px-8">
+ <div className="mx-auto flex w-full max-w-[1080px]">
+ <StatusPill
+ tone="running"
+ role="status"
+ aria-live="polite"
+ className="min-h-7 min-w-0 max-w-full gap-2 px-3 py-1 text-[11px] font-normal shadow-sm shadow-mint/5"
+ indicator={
+ active.length > 0 ? (
+ <Activity className="size-3.5 shrink-0 text-mint" aria-hidden="true" />
+ ) : (
+ <Loader2 className="size-3.5 shrink-0 animate-spin text-mint" aria-hidden="true" />
+ )
+ }
+ label={
+ <>
+ <span className="min-w-0 truncate text-muted" title={firstDescription ?? undefined}>
+ {active.length > 0
+ ? t('chat.activities.running', { count: active.length })
+ : t('chat.activities.delivering', { count: pendingOutputs })}
+ {firstDescription ? ` · ${firstDescription}` : ''}
+ </span>
+ {connectionVisible ? (
+ <span className="shrink-0 border-l border-border-strong pl-2 text-gold">
+ {t(`chat.activities.connection.${state.connection}`)}
+ </span>
+ ) : null}
+ </>
+ }
+ />
</div>
</div>
);